diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-05-24 19:01:02 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-05-24 19:01:02 -0700 |
commit | 04e7c2784dd3fd45090d1ddb31905dd7a9b921a3 (patch) | |
tree | fbe5e2df0e93dddcb4b34d44755d433d84663f38 /com32/include/netinet | |
parent | 24ffb34fcff5b50b56d987e18dcf519e278c771e (diff) | |
download | syslinux-04e7c2784dd3fd45090d1ddb31905dd7a9b921a3.tar.gz |
com32: make com32 modules self-relocating (COM32R)
Introduce a new "COM32R" format, which is exactly like COM32 except
that they contain position-independent code. Therefore, the core can
load them at any sufficiently aligned address; by protocol select 4K
as the alignment.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/include/netinet')
-rw-r--r-- | com32/include/netinet/in.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/include/netinet/in.h b/com32/include/netinet/in.h index 5fd71a6a..e8cacf6c 100644 --- a/com32/include/netinet/in.h +++ b/com32/include/netinet/in.h @@ -21,7 +21,7 @@ static inline uint32_t __htonl(uint32_t v) (((v) & 0x00ff0000) >> 8) | (((v) & 0xff000000) >> 24); } else { - asm("xchgb %h0,%b0 ; roll $16,%0 ; xchgb %h0,%b0" : "+abcd" (v)); + asm("xchgb %h0,%b0 ; roll $16,%0 ; xchgb %h0,%b0" : "+q" (v)); return v; } } |