diff options
| author | Michael Brown | 2012-03-04 22:46:45 +0100 |
|---|---|---|
| committer | Michael Brown | 2012-03-04 22:46:45 +0100 |
| commit | 3b689e531dfc23e52c142f23cb8c83efeef9708f (patch) | |
| tree | 3ac204bdc37378b9522f83f4ce74f4e47e2cf6cb /src/arch/x86_64 | |
| parent | [i386] Use memory address constraints in __bswap_16s() and __bswap_64s() (diff) | |
| download | ipxe-3b689e531dfc23e52c142f23cb8c83efeef9708f.tar.gz ipxe-3b689e531dfc23e52c142f23cb8c83efeef9708f.tar.xz ipxe-3b689e531dfc23e52c142f23cb8c83efeef9708f.zip | |
[x86_64] Use memory address constraint in __bswap_16s()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/x86_64')
| -rw-r--r-- | src/arch/x86_64/include/bits/byteswap.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
