aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2022-04-27 09:08:21 +0200
committerGerd Hoffmann <kraxel@redhat.com>2022-04-27 09:16:08 +0200
commitb2a61b876cf8495dfd421eba574e236ebcb27a45 (patch)
tree739cf31540943896d0f5ad050ea3e36714fc6cb6
parentdc88f9b72df52b22c35b127b80c487e0b6fca4af (diff)
downloadseabios-b2a61b876cf8495dfd421eba574e236ebcb27a45.tar.gz
[debug] range loggingmemory2-logging
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--src/malloc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/malloc.c b/src/malloc.c
index da840980..5bc773a3 100644
--- a/src/malloc.c
+++ b/src/malloc.c
@@ -428,6 +428,9 @@ malloc_preinit(void)
for (i=e820_count-1; i>=0; i--) {
struct e820entry *en = &e820_list[i];
u64 end = en->start + en->size;
+ dprintf(1, "malloc: 0x%08llx -> 0x%08llx [%s]\n",
+ en->start, end,
+ en->type == E820_RAM ? "ram" : "reserved");
if (end < 1024*1024)
break;
if (en->type != E820_RAM || end > 0xffffffff)
@@ -439,12 +442,17 @@ malloc_preinit(void)
if (new_max <= e && new_max >= s + BUILD_MAX_HIGHTABLE) {
highram_start = e = new_max;
highram_size = BUILD_MAX_HIGHTABLE;
+ dprintf(1, "malloc: 0x%08x -> 0x%08x * [zonehigh/max]\n",
+ highram_start, highram_start + highram_size);
} else if (new_min <= e && new_min >= s) {
highram_start = e = new_min;
highram_size = BUILD_MIN_HIGHTABLE;
+ dprintf(1, "malloc: 0x%08x -> 0x%08x * [zonehigh/min]\n",
+ highram_start, highram_start + highram_size);
}
}
alloc_add(&ZoneTmpHigh, s, e);
+ dprintf(1, "malloc: 0x%08x -> 0x%08x * [zonetmphigh]\n", s, e);
}
// Populate regions