summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-02-04 23:01:57 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-02-04 23:01:57 +0100
commit4b0929187b70588bcebfe004ab216f3590c01038 (patch)
tree6646eb138dbd8e3c168bbfd496a4747c3bbc7aee /kernel
parent7dd43f561933828242f77568ed2e2355adafb459 (diff)
Fixed input macros.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/portio.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/portio.h b/kernel/portio.h
index f9caf33..9f2b07b 100644
--- a/kernel/portio.h
+++ b/kernel/portio.h
@@ -1,13 +1,13 @@
#ifndef PORTIO_H
#define PORTIO_H
-#define outb(port, value) asm volatile("outb %b0, %w1" : : "a" (value), "d" (port));
-#define inb(port, value) asm volatile("inb %w1, %b0" : : "a" (value), "d" (port));
+#define outb(port, value) asm volatile("outb %b0, %w1" :: "a" (value), "d" (port));
+#define inb(port, value) asm volatile("inb %w1, %b0" : "=a" (value) : "d" (port));
-#define outw(port, value) asm volatile("outw %w0, %w1" : : "a" (value), "d" (port));
-#define inw(port, value) asm volatile("inw %w1, %w0" : : "a" (value), "d" (port));
+#define outw(port, value) asm volatile("outw %w0, %w1" :: "a" (value), "d" (port));
+#define inw(port, value) asm volatile("inw %w1, %w0" : "=a" (value) : "d" (port));
-#define outl(port, value) asm volatile("outl %0, %w1" : : "a" (value), "d" (port));
-#define inl(port, value) asm volatile("inl %w1, %0" : : "a" (value), "d" (port));
+#define outl(port, value) asm volatile("outl %0, %w1" :: "a" (value), "d" (port));
+#define inl(port, value) asm volatile("inl %w1, %0" : "=a" (value) : "d" (port));
#endif