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

Switched to using mret for trap

This commit is contained in:
Stephen Marz 2019-10-14 16:14:42 -04:00
parent ccaf9b6a5c
commit 3c99c5cffa

View File

@ -51,8 +51,8 @@ _start:
li t0, 0b11 << 11 li t0, 0b11 << 11
csrw mstatus, t0 csrw mstatus, t0
# li t2, (1 << 1) | (1 << 5) | (1 << 9) # li t2, (1 << 1) | (1 << 5) | (1 << 9)
# li t2, 0xffff li t2, 0xffff
# csrw mideleg, t2 csrw mideleg, t2
li t3, 0xaaa li t3, 0xaaa
csrw mie, t3 csrw mie, t3
# Machine's exception program counter (MEPC) is set to `kinit`. # Machine's exception program counter (MEPC) is set to `kinit`.