sys_yield tests worked on qemu.

This commit is contained in:
Yifan Wu 2020-11-29 04:01:38 +08:00
parent 3f3e6b2b99
commit adbe671fe1
10 changed files with 134 additions and 53 deletions

View file

@ -32,7 +32,7 @@ pub fn trap_handler(cx: &mut TrapContext) -> &mut TrapContext {
}
Trap::Exception(Exception::StoreFault) |
Trap::Exception(Exception::StorePageFault) => {
println!("[kernel] PageFault in application, core dumped.");
println!("[kernel] PageFault in application, bad addr = {:#x}, bad instruction = {:#x}, core dumped.", stval, cx.sepc);
panic!("[kernel] Cannot continue!");
//run_next_app();
}