Added cause_s_soft_from_m_interrupt

This commit is contained in:
Kip Macsai-Goren 2023-03-22 23:08:39 -07:00
parent 7870148814
commit 6f15ae1225

View File

@ -162,6 +162,11 @@ cause_s_soft_interrupt:
csrs sip, t3 // set supervisor software interrupt pending. SIP is a subset of MIP, so writing this should also change MIP. csrs sip, t3 // set supervisor software interrupt pending. SIP is a subset of MIP, so writing this should also change MIP.
ret ret
cause_s_soft_from_m_interrupt:
li t3, 0x2
csrs mip, t3 // set supervisor software interrupt pending. SIP is a subset of MIP, so writing this should also change MIP.
ret
cause_m_ext_interrupt: cause_m_ext_interrupt:
// ========== Configure PLIC ========== // ========== Configure PLIC ==========
li a3, 0x40 li a3, 0x40