From c343f75d76653c4daaf630e4b288cec47d20de94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Dziepak?= Date: Fri, 12 Sep 2014 01:03:22 +0200 Subject: [PATCH] boot/x86_64: call debug_cleanup() before preparing mmu data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit long_mmu_init() prepares initial paging structures for 64 bit kernel. Once that function completes bootloader cannot allocate any memory that needs to be passed to the kernel. Signed-off-by: Paweł Dziepak --- src/system/boot/platform/bios_ia32/long.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/boot/platform/bios_ia32/long.cpp b/src/system/boot/platform/bios_ia32/long.cpp index dac3c84a64..c1243ca172 100644 --- a/src/system/boot/platform/bios_ia32/long.cpp +++ b/src/system/boot/platform/bios_ia32/long.cpp @@ -313,8 +313,8 @@ long_start_kernel() smp_init_other_cpus(); long_gdt_init(); - long_mmu_init(); debug_cleanup(); + long_mmu_init(); convert_kernel_args(); // Save the kernel entry point address.