[SeaBIOS] [PATCH] Report on f-segment UMB ram also.

Kevin O'Connor kevin at koconnor.net
Mon Feb 18 16:34:10 CET 2013


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 at koconnor.net>
---
 src/pmm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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);
-- 
1.7.11.7




More information about the SeaBIOS mailing list