mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Move test_main call to end of _start
This commit is contained in:
@@ -14,15 +14,15 @@ pub extern "C" fn _start() -> ! {
|
|||||||
|
|
||||||
blog_os::init();
|
blog_os::init();
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
test_main();
|
|
||||||
|
|
||||||
let (level_4_page_table, _) = Cr3::read();
|
let (level_4_page_table, _) = Cr3::read();
|
||||||
println!(
|
println!(
|
||||||
"Level 4 page table at: {:?}",
|
"Level 4 page table at: {:?}",
|
||||||
level_4_page_table.start_address()
|
level_4_page_table.start_address()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
test_main();
|
||||||
|
|
||||||
println!("It did not crash!");
|
println!("It did not crash!");
|
||||||
blog_os::hlt_loop();
|
blog_os::hlt_loop();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user