]> xenbits.xensource.com Git - seabios.git/commit
Avoid runtime relocation of 16bit "low" mem - calculate at build instead.
authorKevin O'Connor <kevin@koconnor.net>
Sat, 9 Jun 2012 01:14:19 +0000 (21:14 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 9 Jun 2012 01:26:26 +0000 (21:26 -0400)
commitc91da7a8a49451700d48396840447400e2255926
tree742a35cfe0333d6dbe385c0d21d7929a9f443083
parent2062f2bab81915c5c1f7af12a49ad8d4b3fd23fb
Avoid runtime relocation of 16bit "low" mem - calculate at build instead.

Some 16bit accesses to "low" mem variables use 16bit relocations
instead of the normal 32bit relocations.  This causes build problems
if the "low" mem sections move more than 64K during relocation.

The final location of the "low" memory can be determined during the
build, so link the 16bit code with the final post-reloc location of
the "low" mem variables instead.  This eliminates the need to do these
runtime relocations on the 16bit code.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/biosvar.h
src/pmm.c
src/post.c
tools/layoutrom.py