Kernel cannot dump now.

This commit is contained in:
Yifan Wu 2022-01-03 19:36:52 -08:00
parent 0d5b0f9f37
commit 5c9bcf05ff

View File

@ -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) => {