mirror of
https://github.com/sgmarz/osblog.git
synced 2024-11-23 18:06:20 +04:00
Added epc to trap 3 and 11
This commit is contained in:
parent
efaecf96d6
commit
5a8523099a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user