summaryrefslogtreecommitdiff
path: root/i386/i386/pio.h
diff options
context:
space:
mode:
Diffstat (limited to 'i386/i386/pio.h')
-rw-r--r--i386/i386/pio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/i386/i386/pio.h b/i386/i386/pio.h
index 3b22aee..f0e5e27 100644
--- a/i386/i386/pio.h
+++ b/i386/i386/pio.h
@@ -38,7 +38,7 @@
#define inw(y) \
({ unsigned short _tmp__; \
- asm volatile(".byte 0x66; inl %1, %0" : "=a" (_tmp__) : "d" ((unsigned short)(y))); \
+ asm volatile("inw %1, %0" : "=a" (_tmp__) : "d" ((unsigned short)(y))); \
_tmp__; })
#define inb(y) \
@@ -52,7 +52,7 @@
#define outw(x, y) \
-{asm volatile(".byte 0x66; outl %0, %1" : : "a" ((unsigned short)(y)) , "d" ((unsigned short)(x))); }
+{ asm volatile("outw %0, %1" : : "a" ((unsigned short)(y)) , "d" ((unsigned short)(x))); }
#define outb(x, y) \