From 39c9c80d3578fb7c17296afa42db82fd62db358c Mon Sep 17 00:00:00 2001 From: Yifan Wu Date: Mon, 3 Jan 2022 19:39:58 -0800 Subject: [PATCH] Kernel cannot dump now. --- os/src/trap/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os/src/trap/mod.rs b/os/src/trap/mod.rs index ce488b2b..66d403f7 100644 --- a/os/src/trap/mod.rs +++ b/os/src/trap/mod.rs @@ -68,7 +68,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, @@ -77,7 +77,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); }