From c9961af38885b92a86e61e54286c2e60b1585359 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Mon, 11 Jan 2010 06:28:28 +0100 Subject: Move port IO macros to a separate file. --- kernel/portio.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 kernel/portio.h (limited to 'kernel/portio.h') diff --git a/kernel/portio.h b/kernel/portio.h new file mode 100644 index 0000000..06e0802 --- /dev/null +++ b/kernel/portio.h @@ -0,0 +1,6 @@ +#ifndef PORTIO_H +#define PORTIO_H + +#define outb(port, value) asm volatile("out %b0,%w1" : : "a" (value), "d" (port)); + +#endif -- cgit v1.2.3