summaryrefslogtreecommitdiff
path: root/src/pmm.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/pmm.c
parent232191220043265ab95d3c4b79548cd24ac1d6f0 (diff)
downloadqemu-seabios-3733f6f64f9ae4343ba4888f49ae95ba648b94b4.tar.gz
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/pmm.c')
-rw-r--r--src/pmm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pmm.c b/src/pmm.c
index a7d0608..b003dd1 100644
--- a/src/pmm.c
+++ b/src/pmm.c
@@ -170,15 +170,15 @@ static struct allocinfo_s *RomBase;
#define OPROM_HEADER_RESERVE 16
-// Return the memory position up to which roms may be located.
+// Return the maximum memory position option roms may use.
u32
-rom_get_top(void)
+rom_get_max(void)
{
return ALIGN_DOWN((u32)RomBase->allocend - OPROM_HEADER_RESERVE
, OPTION_ROM_ALIGN);
}
-// Return the end of the last deployed rom.
+// Return the end of the last deployed option rom.
u32
rom_get_last(void)
{
@@ -318,7 +318,7 @@ malloc_prepboot(void)
dprintf(3, "malloc finalize\n");
// Place an optionrom signature around used low mem area.
- u32 base = rom_get_top();
+ u32 base = rom_get_max();
struct rom_header *dummyrom = (void*)base;
dummyrom->signature = OPTION_ROM_SIGNATURE;
int size = (BUILD_BIOS_ADDR - base) / 512;