diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-12-30 12:14:53 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-12-30 12:14:53 -0500 |
commit | 871e0a0c142f7b2fcaa93600c5958d4ae4fa1394 (patch) | |
tree | 9b439bc44c321d659cd56c2cae71c917684b67d5 /src/optionroms.c | |
parent | eda2c83bfa9d54a6f751e31ea555e53966f60272 (diff) | |
download | seabios-871e0a0c142f7b2fcaa93600c5958d4ae4fa1394.tar.gz |
Add support for 32bit PCI BIOS entry.
Create a new code blob (code32seg) with support for 32bit functions
that need to utilize explicit segment accesses.
This code blob uses global variables relative to %gs and with a
dynamic code offset (determined by get_global_offset()).
Add BIOS32 structure and code.
Add code for 32bit PCI BIOS code.
Diffstat (limited to 'src/optionroms.c')
-rw-r--r-- | src/optionroms.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/optionroms.c b/src/optionroms.c index 0be68524..31bb98be 100644 --- a/src/optionroms.c +++ b/src/optionroms.c @@ -172,10 +172,10 @@ get_pci_rom(struct rom_header *rom) static inline u32 max_rom() { - extern u8 code32_start[]; - if ((u32)code32_start > BUILD_BIOS_ADDR) + extern u8 code32flat_start[]; + if ((u32)code32flat_start > BUILD_BIOS_ADDR) return BUILD_BIOS_ADDR; - return (u32)code32_start; + return (u32)code32flat_start; } // Copy a rom to its permanent location below 1MiB |