Skip to content

Commit 86216ce

Browse files
committed
start exception by chinesebear
1 parent c8c4d2e commit 86216ce

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

libcpu/mips/loongson_1c/context_gcc.S

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,14 @@ rt_hw_interrupt_disable:
3636
*/
3737
.globl rt_hw_interrupt_enable
3838
rt_hw_interrupt_enable:
39+
ori a0, 0x00000800
3940
mtc0 a0, CP0_STATUS
41+
ehb
42+
mfc0 v0, CP0_CAUSE
43+
ehb
44+
or v1, v0, 0x800000 //EBASE + 0x200
45+
mtc0 v1, CP0_CAUSE
46+
ehb
4047
jr ra
4148
nop
4249

0 commit comments

Comments
 (0)