From 156642293f76132cd3aa3816dede11f9f72e547a Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Mon, 4 Sep 2023 21:20:10 -0400 Subject: [PATCH] Debug output HULK memory range end addresses --- src/hello/hello.d | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/hello/hello.d b/src/hello/hello.d index a2d45c5..64f958a 100644 --- a/src/hello/hello.d +++ b/src/hello/hello.d @@ -219,7 +219,9 @@ private void get_memory_map(ulong * physical_address_limit, UINTN * memory_map_k bootinfo().bss_phys = bootinfo().memory_map[count].base; bootinfo().memory_map[count].base += hulk_bss_size(); bootinfo().memory_map[count].size -= hulk_bss_size(); - Serial.writefln("Locating HULK BSS at %x", bootinfo().bss_phys); + Serial.writefln("Locating HULK BSS at %x:%x", + bootinfo().bss_phys, + bootinfo().bss_phys + hulk_bss_size() - 1u); found_bss = true; } if ((!found_stack) && @@ -229,7 +231,9 @@ private void get_memory_map(ulong * physical_address_limit, UINTN * memory_map_k bootinfo().stack_phys = bootinfo().memory_map[count].base; bootinfo().memory_map[count].base += hulk_stack_size(); bootinfo().memory_map[count].size -= hulk_stack_size(); - Serial.writefln("Locating HULK stack at %x", bootinfo().stack_phys); + Serial.writefln("Locating HULK stack at %x:%x", + bootinfo().stack_phys, + bootinfo().stack_phys + hulk_stack_size() - 1u); found_stack = true; } if ((!found_fb_buffer1) && @@ -239,7 +243,9 @@ private void get_memory_map(ulong * physical_address_limit, UINTN * memory_map_k bootinfo().fb_buffer1_phys = bootinfo().memory_map[count].base; bootinfo().memory_map[count].base += fb_size; bootinfo().memory_map[count].size -= fb_size; - Serial.writefln("Locating HULK FB1 at %x", bootinfo().fb_buffer1_phys); + Serial.writefln("Locating HULK FB1 at %x:%x", + bootinfo().fb_buffer1_phys, + bootinfo().fb_buffer1_phys + fb_size - 1u); found_fb_buffer1 = true; } Serial.writefln("Memory range %x:%x (%u)",