]> xenbits.xensource.com Git - seabios.git/commit
Separate out sec32init sections even when not doing code relocation.
authorKevin O'Connor <kevin@koconnor.net>
Fri, 6 Dec 2013 18:52:16 +0000 (13:52 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 7 Dec 2013 17:59:35 +0000 (12:59 -0500)
commitb94170cc4b6b08d03ac21e1c2390c94b7b881e7c
tree181270dd377b506f78aaf79aaaa6cdbbe1324ba7
parent0f0612e8dc287d568f2eaa8407ed3f76cfae4018
Separate out sec32init sections even when not doing code relocation.

The current code does not boot on QEMU with 256K roms when code
relocation is disabled, because QEMU only maps the last 128K of the
rom to low memory.  The seabios make_bios_writable() call copies the
full rom to low memory.

This patch separates out the init sections even if code relocations
are disabled.  This effectively ensures that make_bios_writable() code
is in the last 128K of the rom.

This also introduces a new build symbol (final_readonly_start) which
stores the address of where the final runtime read-only memory begins.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
scripts/layoutrom.py
src/malloc.c