[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)
__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.)


No differences found