aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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