From 5c9bcf05ffc5de8e4421885c25679a0fa7ca21af Mon Sep 17 00:00:00 2001 From: Yifan Wu Date: Mon, 3 Jan 2022 19:36:52 -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 9dd29aec..bae775d6 100644 --- a/os/src/trap/mod.rs +++ b/os/src/trap/mod.rs @@ -44,11 +44,11 @@ pub fn trap_handler(cx: &mut TrapContext) -> &mut TrapContext { } Trap::Exception(Exception::StoreFault) | Trap::Exception(Exception::StorePageFault) => { - println!("[kernel] PageFault in application, bad addr = {:#x}, bad instruction = {:#x}, core dumped.", stval, cx.sepc); + println!("[kernel] PageFault in application, bad addr = {:#x}, bad instruction = {:#x}, kernel killed it.", stval, cx.sepc); exit_current_and_run_next(); } Trap::Exception(Exception::IllegalInstruction) => { - println!("[kernel] IllegalInstruction in application, core dumped."); + println!("[kernel] IllegalInstruction in application, kernel killed it."); exit_current_and_run_next(); } Trap::Interrupt(Interrupt::SupervisorTimer) => {