boot/x86_64: call debug_cleanup() before preparing mmu data

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 <[email protected]>
This commit is contained in:
Paweł Dziepak
2014-09-12 01:09:14 +02:00
parent 21de8955c8
commit c343f75d76
+1 -1
View File
@@ -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.