From: Michael Brown Date: Sun, 4 Mar 2012 21:46:45 +0000 (+0000) Subject: [x86_64] Use memory address constraint in __bswap_16s() X-Git-Tag: v1.20.1~1972 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b689e531dfc23e52c142f23cb8c83efeef9708f;p=thirdparty%2Fipxe.git [x86_64] Use memory address constraint in __bswap_16s() Signed-off-by: Michael Brown --- 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