1
0
mirror of https://github.com/sgmarz/osblog.git synced 2024-11-24 02:16:19 +04:00

Added epc to trap 3 and 11

This commit is contained in:
Stephen Marz 2019-11-03 19:00:46 -05:00
parent efaecf96d6
commit 5a8523099a

View File

@ -34,6 +34,7 @@ extern "C" fn m_trap(epc: usize,
match cause_num {
3 => {
// Machine software
epc
},
7 => {
// Machine timer
@ -41,6 +42,7 @@ extern "C" fn m_trap(epc: usize,
},
11 => {
// Machine external (interrupt from Platform Interrupt Controller (PLIC))
epc
},
_ => {
panic!("Unhandled sync trap CPU#{} -> {}\n", hart, cause_num);