aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/ioport.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ioport.h b/include/ioport.h
index bbec982..208be41 100644
--- a/include/ioport.h
+++ b/include/ioport.h
@@ -3,12 +3,12 @@
static inline void outsb(unsigned short port, void *buf, int len)
{
- asm volatile("rep outsb %%ds:(%0), %3" : "+S" (buf), "+c" (len) : "m"(buf), "Nd"(port), "0" (buf), "1" (len));
+ asm volatile("rep outsb %%ds:(%0), %3" : "=S" (buf), "=c" (len) : "m"(buf), "Nd"(port), "0" (buf), "1" (len));
}
static inline void insb(void *buf, unsigned short port, int len)
{
- asm volatile("rep insb %3, %%es:(%0)" : "+D" (buf), "+c" (len), "=m"(buf) : "Nd"(port), "0" (buf), "1" (len));
+ asm volatile("rep insb %3, %%es:(%0)" : "=D" (buf), "=c" (len), "=m"(buf) : "Nd"(port), "0" (buf), "1" (len));
}
static inline unsigned char inb(unsigned short port)