Kernel cannot dump now.
This commit is contained in:
parent
1c05b9321d
commit
bbaad9a719
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue