summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrsc <rsc>2009-03-08 20:56:38 +0000
committerrsc <rsc>2009-03-08 20:56:38 +0000
commit4003e9bed8a306048c7dfe7143949778f96f7273 (patch)
tree3fc2c340aa5438f603417fa605f2cf5249e9abb0
parent8eb20827c273df183986f95fc13cad8b28ea8ae6 (diff)
downloadxv6-labs-4003e9bed8a306048c7dfe7143949778f96f7273.tar.gz
xv6-labs-4003e9bed8a306048c7dfe7143949778f96f7273.tar.bz2
xv6-labs-4003e9bed8a306048c7dfe7143949778f96f7273.zip
xv6/x86.h: inline assembly cleanup
-rw-r--r--x86.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/x86.h b/x86.h
index 8db4dc9..5961d67 100644
--- a/x86.h
+++ b/x86.h
@@ -12,10 +12,10 @@ inb(ushort port)
static inline void
insl(int port, void *addr, int cnt)
{
- asm volatile("cld\n\trepne\n\tinsl" :
- "=D" (addr), "=c" (cnt) :
- "d" (port), "0" (addr), "1" (cnt) :
- "memory", "cc");
+ asm volatile("cld; repne insl" :
+ "=D" (addr), "=c" (cnt) :
+ "d" (port), "0" (addr), "1" (cnt) :
+ "memory", "cc");
}
static inline void
@@ -33,10 +33,10 @@ outw(ushort port, ushort data)
static inline void
outsl(int port, const void *addr, int cnt)
{
- asm volatile("cld\n\trepne\n\toutsl" :
- "=S" (addr), "=c" (cnt) :
- "d" (port), "0" (addr), "1" (cnt) :
- "cc");
+ asm volatile("cld; repne outsl" :
+ "=S" (addr), "=c" (cnt) :
+ "d" (port), "0" (addr), "1" (cnt) :
+ "cc");
}
static inline uint