david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[x86_64] Use memory address constraint in __bswap_16s()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2012-03-04 21:46:45 +00:00
parent 732bea2f88
commit 3b689e531d
1 changed files with 1 additions and 1 deletions

View 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