[i386] Change semantics of __from_data16 and __from_text16
authorMichael Brown <mcb30@etherboot.org>
Tue, 1 Jul 2008 01:52:13 +0000 (18:52 -0700)
committerMichael Brown <mcb30@etherboot.org>
Tue, 1 Jul 2008 01:52:13 +0000 (18:52 -0700)
commit4fbbf651d7cb91983801904f5ed2b07d15566c1d
tree36e8d2ecd24b17a0fd4cbe9dfd7c0143bb0d578f
parentd51d80f7854be874c7f60c6fda40d073cdfe717d
[i386] Change semantics of __from_data16 and __from_text16

__from_data16 and __from_text16 now take a pointer to a
.data16/.text16 variable, and return the real-mode offset within the
appropriate segment.  This matches the use case for every occurrence
of these macros, and prevents potential future bugs such as that fixed
in commit d51d80f.  (The bug arose essentially because "&pointer" is
still syntactically valid.)
src/arch/i386/drivers/net/undiload.c
src/arch/i386/drivers/net/undinet.c
src/arch/i386/firmware/pcbios/memmap.c
src/arch/i386/include/libkir.h
src/arch/i386/include/librm.h
src/arch/i386/interface/pxe/pxe_call.c
src/interface/pxe/pxe_loader.c
src/interface/pxe/pxe_preboot.c
src/interface/pxe/pxe_undi.c