]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[x86_64] Use memory address constraint in __bswap_16s()
authorMichael Brown <mcb30@ipxe.org>
Sun, 4 Mar 2012 21:46:45 +0000 (21:46 +0000)
committerMichael Brown <mcb30@ipxe.org>
Sun, 4 Mar 2012 21:46:45 +0000 (21:46 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86_64/include/bits/byteswap.h

index 113b327874a74e4447b74ca8261eab92a510c869..2e472d98ad02d834b10cc344afe0bb64cc2efbe8 100644 (file)
@@ -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