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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user