aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kapi/memory.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-11-24 16:59:24 +0100
committerFelix Morgner <felix.morgner@ost.ch>2025-11-24 16:59:24 +0100
commit1a3c20cc9ea191a862eb7e8ac55b3a69ac74ad5e (patch)
treee740d842eb64f9dcde4a70ff138092d349e717c1 /arch/x86_64/src/kapi/memory.cpp
parent2b3dca0d0329b61881ffbecca0f120cfda3314fa (diff)
downloadteachos-1a3c20cc9ea191a862eb7e8ac55b3a69ac74ad5e.tar.xz
teachos-1a3c20cc9ea191a862eb7e8ac55b3a69ac74ad5e.zip
x86_64/vga: rely less on magic state
Diffstat (limited to 'arch/x86_64/src/kapi/memory.cpp')
-rw-r--r--arch/x86_64/src/kapi/memory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/src/kapi/memory.cpp b/arch/x86_64/src/kapi/memory.cpp
index 5142a2a..3848fb8 100644
--- a/arch/x86_64/src/kapi/memory.cpp
+++ b/arch/x86_64/src/kapi/memory.cpp
@@ -24,7 +24,7 @@ namespace teachos::memory
auto create_memory_information() -> x86_64::region_allocator::memory_information
{
- auto const & mbi = boot::x86_64::multiboot_information_pointer.get();
+ auto const & mbi = boot::bootstrap_information.mbi;
return {.image_range = std::make_pair(physical_address{&boot::x86_64::_start_physical},
physical_address{&boot::x86_64::_end_physical}),
@@ -35,7 +35,7 @@ namespace teachos::memory
auto create_early_frame_allocator()
{
- auto memory_map = boot::x86_64::multiboot_information_pointer->maybe_memory_map();
+ auto memory_map = boot::bootstrap_information.mbi->maybe_memory_map();
if (!memory_map)
{
system::panic("[x86_64] Failed to create early allocator, no memory map available.");