aboutsummaryrefslogtreecommitdiff
path: root/src/optionroms.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-02-17 12:44:23 -0500
committerKevin O'Connor <kevin@koconnor.net>2013-02-17 12:44:23 -0500
commit3733f6f64f9ae4343ba4888f49ae95ba648b94b4 (patch)
treee0d35146d8d50889887642b963ba9f0cc058d695 /src/optionroms.c
parent232191220043265ab95d3c4b79548cd24ac1d6f0 (diff)
downloadseabios-hppa-3733f6f64f9ae4343ba4888f49ae95ba648b94b4.zip
seabios-hppa-3733f6f64f9ae4343ba4888f49ae95ba648b94b4.tar.gz
seabios-hppa-3733f6f64f9ae4343ba4888f49ae95ba648b94b4.tar.bz2
Rename rom_get_top() to rom_get_max().
Rename rom_get_top and try to make the difference between it and rom_get_last more clear. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/optionroms.c')
-rw-r--r--src/optionroms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/optionroms.c b/src/optionroms.c
index 03c5de0..caa2151 100644
--- a/src/optionroms.c
+++ b/src/optionroms.c
@@ -354,7 +354,7 @@ optionrom_setup(void)
if (CONFIG_OPTIONROMS_DEPLOYED) {
// Option roms are already deployed on the system.
u32 pos = post_vga;
- while (pos < rom_get_top()) {
+ while (pos < rom_get_max()) {
int ret = init_optionrom((void*)pos, 0, 0);
if (ret)
pos += OPTION_ROM_ALIGN;
@@ -436,7 +436,7 @@ vgarom_setup(void)
init_optionrom((void*)BUILD_ROM_START, 0, 1);
} else {
// Clear option rom memory
- memset((void*)BUILD_ROM_START, 0, rom_get_top() - BUILD_ROM_START);
+ memset((void*)BUILD_ROM_START, 0, rom_get_max() - BUILD_ROM_START);
// Find and deploy PCI VGA rom.
struct pci_device *pci;