]> xenbits.xensource.com Git - seabios.git/commitdiff
Report on f-segment UMB ram also.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 17 Feb 2013 17:46:53 +0000 (12:46 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 17 Feb 2013 17:46:53 +0000 (12:46 -0500)
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>
src/pmm.c

index b003dd1739469f647fdbd6732285b77db16e71f1..d1986c2076c738be1b2393a2292287962be91b37 100644 (file)
--- 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);