Move test_main call to end of _start

This commit is contained in:
Philipp Oppermann
2019-04-25 20:33:26 +02:00
parent d6f48d72aa
commit 62f913facc

View File

@@ -14,15 +14,15 @@ pub extern "C" fn _start() -> ! {
blog_os::init();
#[cfg(test)]
test_main();
let (level_4_page_table, _) = Cr3::read();
println!(
"Level 4 page table at: {:?}",
level_4_page_table.start_address()
);
#[cfg(test)]
test_main();
println!("It did not crash!");
blog_os::hlt_loop();
}