CPU Exception

This commit is contained in:
2022-01-09 17:13:30 +08:00
parent c15df2a6a9
commit 70099da497
3 changed files with 37 additions and 0 deletions

View File

@@ -14,6 +14,10 @@ use anos::println;
pub extern "C" fn _start() -> ! {
println!("Hello World{}", "!");
anos::init();
x86_64::instructions::interrupts::int3();
println!("It didn't crash!");
#[cfg(test)]
test_main();