kernel: riscv: print "SYSTEM HALT" when halting system

This minor patch helps me remember that these errors are fatal.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2020-03-23 12:59:09 +08:00
parent 0be1b8b94c
commit fb69426f28

View file

@ -197,7 +197,7 @@ pub extern "C" fn trap_handler(
}
_ => (),
}
println!("CPU Exception on PID {}: {}", pid, ex);
println!("SYSTEM HALT: CPU Exception on PID {}: {}", pid, ex);
loop {}
} else {
let irqs_pending = sip::read();