summaryrefslogtreecommitdiff
path: root/payloads
diff options
context:
space:
mode:
Diffstat (limited to 'payloads')
-rw-r--r--payloads/libpayload/include/x86/arch/io.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/payloads/libpayload/include/x86/arch/io.h b/payloads/libpayload/include/x86/arch/io.h
index 31a8f88410..bcfd30771e 100644
--- a/payloads/libpayload/include/x86/arch/io.h
+++ b/payloads/libpayload/include/x86/arch/io.h
@@ -92,17 +92,20 @@ static inline void outsb(int port, const void *addr, unsigned long count)
static inline void insl(int port, void *addr, unsigned long count)
{
- __asm__ __volatile__("rep; insl" : "+D"(addr), "+c"(count) : "d"(port));
+ __asm__ __volatile__("rep; insl" : "+D"(addr), "+c"(count) : "d"(port)
+ : "memory");
}
static inline void insw(int port, void *addr, unsigned long count)
{
- __asm__ __volatile__("rep; insw" : "+D"(addr), "+c"(count) : "d"(port));
+ __asm__ __volatile__("rep; insw" : "+D"(addr), "+c"(count) : "d"(port)
+ : "memory");
}
static inline void insb(int port, void *addr, unsigned long count)
{
- __asm__ __volatile__("rep; insb" : "+D"(addr), "+c"(count) : "d"(port));
+ __asm__ __volatile__("rep; insb" : "+D"(addr), "+c"(count) : "d"(port)
+ : "memory");
}
#endif