From a91daa5ba15260fc5551ff54fb926d6e2b093711 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 7 Nov 2013 16:51:24 +0100 Subject: add memory clobber to ins{b,w,l} MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia710eb59f23a52afba2a8ef6e0ff2b2306107245 Signed-off-by: Gerd Hoffmann Reviewed-on: http://review.coreboot.org/4033 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki Reviewed-by: Patrick Georgi --- src/arch/x86/include/arch/io.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/arch/x86/include/arch/io.h b/src/arch/x86/include/arch/io.h index 50264f653c..955d8e2f91 100644 --- a/src/arch/x86/include/arch/io.h +++ b/src/arch/x86/include/arch/io.h @@ -113,6 +113,7 @@ static inline void insb(uint16_t port, void *addr, unsigned long count) "cld ; rep ; insb " : "=D" (addr), "=c" (count) : "d"(port), "0"(addr), "1" (count) + : "memory" ); } @@ -122,6 +123,7 @@ static inline void insw(uint16_t port, void *addr, unsigned long count) "cld ; rep ; insw " : "=D" (addr), "=c" (count) : "d"(port), "0"(addr), "1" (count) + : "memory" ); } @@ -131,6 +133,7 @@ static inline void insl(uint16_t port, void *addr, unsigned long count) "cld ; rep ; insl " : "=D" (addr), "=c" (count) : "d"(port), "0"(addr), "1" (count) + : "memory" ); } -- cgit v1.2.3