|
|
|
@ -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();
|
|
|
|
|
}
|
|
|
|
|
_ => {
|
|
|
|
|