This commit is contained in:
2026-03-14 10:36:47 +08:00
parent 3b0a03d4b2
commit 0ef14a0ecb
3 changed files with 14 additions and 18 deletions
+2 -2
View File
@@ -336,10 +336,10 @@ handle_reset:
li t0, 0x1f
csrw 0xbc0, t0
/* Enable interrupt nesting and hardware stack */
li t0, 0x0b
li t0, 0x1f
csrw 0x804, t0
/* Enable floating point and global interrupt, configure privileged mode */
li t0, 0x6088
li t0, 0x7800
csrw mstatus, t0
/* Configure the interrupt vector table recognition mode and entry address mode */
la t0, _vector_base
+3 -3
View File
@@ -356,10 +356,10 @@ handle_reset:
li t0, 0x1f
csrw 0xbc0, t0
/* Enable interrupt nesting and hardware stack */
li t0, 0x0b
li t0, 0x1f
csrw 0x804, t0
/* Enable floating point and global interrupt, configure privileged mode */
li t0, 0x6088
/* Enable global interrupt, configure privileged mode */
li t0, 0x7800
csrw mstatus, t0
/* Configure the interrupt vector table recognition mode and entry address mode */
la t0, _vector_base