diff --git a/os/src/trap/mod.rs b/os/src/trap/mod.rs index f0f60afe..f57ca709 100644 --- a/os/src/trap/mod.rs +++ b/os/src/trap/mod.rs @@ -69,7 +69,7 @@ pub fn trap_handler() -> ! { Trap::Exception(Exception::LoadFault) | Trap::Exception(Exception::LoadPageFault) => { println!( - "[kernel] {:?} in application, bad addr = {:#x}, bad instruction = {:#x}, core dumped.", + "[kernel] {:?} in application, bad addr = {:#x}, bad instruction = {:#x}, kernel killed it.", scause.cause(), stval, current_trap_cx().sepc, @@ -78,7 +78,7 @@ pub fn trap_handler() -> ! { exit_current_and_run_next(-2); } Trap::Exception(Exception::IllegalInstruction) => { - println!("[kernel] IllegalInstruction in application, core dumped."); + println!("[kernel] IllegalInstruction in application, kernel killed it."); // illegal instruction exit code exit_current_and_run_next(-3); }