summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-09-22 02:13:33 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-09-22 02:13:33 +0200
commitc81df8d61ed024b253334076041917b2c8fcf55e (patch)
tree03d2085306c6b3f62617a198a7d6d6a661e8db99
parente29b7797dc2aebcfb00fc08201c31ef0caf5f4d3 (diff)
biosmem: show memory map at boot
* i386/i386at/biosmem.c (biosmem_type_desc, biosmem_map_show): Define even if DEBUG is 0. But show biosmem heap addresses only if DEBUG is 1.
-rw-r--r--i386/i386at/biosmem.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/i386/i386at/biosmem.c b/i386/i386at/biosmem.c
index a1040207..645c957c 100644
--- a/i386/i386at/biosmem.c
+++ b/i386/i386at/biosmem.c
@@ -800,8 +800,6 @@ biosmem_directmap_end(void)
return biosmem_segment_end(VM_PAGE_SEG_DMA);
}
-#if DEBUG
-
static const char * __init
biosmem_type_desc(unsigned int type)
{
@@ -835,15 +833,13 @@ biosmem_map_show(void)
entry->base_addr + entry->length,
biosmem_type_desc(entry->type));
+#if DEBUG
printf("biosmem: heap: %llx:%llx\n",
(unsigned long long)biosmem_heap_start,
(unsigned long long)biosmem_heap_end);
+#endif
}
-#else /* DEBUG */
-#define biosmem_map_show()
-#endif /* DEBUG */
-
static void __init
biosmem_load_segment(struct biosmem_segment *seg, uint64_t max_phys_end)
{