aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-02-17 12:46:53 -0500
committerKevin O'Connor <kevin@koconnor.net>2013-02-17 12:46:53 -0500
commit89efc93cceddf71a8455d75356991eaa08508d48 (patch)
tree44d1d4b9b761050ec74d475c64a9bc66af2f0d29
parent3733f6f64f9ae4343ba4888f49ae95ba648b94b4 (diff)
downloadseabios-89efc93cceddf71a8455d75356991eaa08508d48.tar.gz
Report on f-segment UMB ram also.
Some old DOS programs can also use f-segment space as Upper Memory Blocks (UMB), so also report on what space is available in debug messages. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--src/pmm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pmm.c b/src/pmm.c
index b003dd1..d1986c2 100644
--- a/src/pmm.c
+++ b/src/pmm.c
@@ -324,11 +324,12 @@ malloc_prepboot(void)
int size = (BUILD_BIOS_ADDR - base) / 512;
dummyrom->size = (size > 255) ? 255 : size;
memset((void*)RomEnd, 0, base-RomEnd);
- dprintf(1, "Space available for UMB: %08x-%08x\n", RomEnd, base);
// Clear unused f-seg ram.
struct allocinfo_s *info = findLast(&ZoneFSeg);
memset(info->dataend, 0, info->allocend - info->dataend);
+ dprintf(1, "Space available for UMB: %x-%x, %x-%x\n"
+ , RomEnd, base, (u32)info->dataend, (u32)info->allocend);
// Give back unused high ram.
info = findLast(&ZoneHigh);