From: Kevin O'Connor Date: Sun, 17 Feb 2013 17:46:53 +0000 (-0500) Subject: Report on f-segment UMB ram also. X-Git-Tag: rel-1.7.3~79 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=89efc93cceddf71a8455d75356991eaa08508d48;p=seabios.git 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 --- 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);