From e0657a71300027ff7515d78355403d6b01d2d03f Mon Sep 17 00:00:00 2001 From: Yifan Wu Date: Mon, 3 Jan 2022 19:41:01 -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 5c2ea91e..83396231 100644 --- a/os/src/trap/mod.rs +++ b/os/src/trap/mod.rs @@ -34,11 +34,11 @@ pub fn trap_handler(cx: &mut TrapContext) -> &mut TrapContext { } Trap::Exception(Exception::StoreFault) | Trap::Exception(Exception::StorePageFault) => { - println!("[kernel] PageFault in application, killed by kernel."); + println!("[kernel] PageFault in application, kernel killed it."); run_next_app(); } Trap::Exception(Exception::IllegalInstruction) => { - println!("[kernel] IllegalInstruction in application, killed by kernel."); + println!("[kernel] IllegalInstruction in application, kernel killed it."); run_next_app(); } _ => {