From 3b689e531dfc23e52c142f23cb8c83efeef9708f Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 4 Mar 2012 21:46:45 +0000 Subject: [PATCH] [x86_64] Use memory address constraint in __bswap_16s() Signed-off-by: Michael Brown --- src/arch/x86_64/include/bits/byteswap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/x86_64/include/bits/byteswap.h b/src/arch/x86_64/include/bits/byteswap.h index 113b32787..2e472d98a 100644 --- a/src/arch/x86_64/include/bits/byteswap.h +++ b/src/arch/x86_64/include/bits/byteswap.h @@ -19,7 +19,7 @@ __bswap_variable_16 ( uint16_t x ) { static inline __attribute__ (( always_inline )) void __bswap_16s ( uint16_t *x ) { - __asm__ ( "rorw $8, %0" : "=g" ( *x ) : "0" ( *x ) ); + __asm__ ( "rorw $8, %0" : "+m" ( *x ) ); } static inline __attribute__ (( always_inline, const )) uint32_t