From 86216ceeccb95a86a8e08b2230c4f0dcf6fb69de Mon Sep 17 00:00:00 2001 From: chinesebear Date: Tue, 19 Apr 2016 22:08:23 +0800 Subject: [PATCH] start exception by chinesebear --- libcpu/mips/loongson_1c/context_gcc.S | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libcpu/mips/loongson_1c/context_gcc.S b/libcpu/mips/loongson_1c/context_gcc.S index ce004dc71..1ac274774 100644 --- a/libcpu/mips/loongson_1c/context_gcc.S +++ b/libcpu/mips/loongson_1c/context_gcc.S @@ -36,7 +36,14 @@ rt_hw_interrupt_disable: */ .globl rt_hw_interrupt_enable rt_hw_interrupt_enable: + ori a0, 0x00000800 mtc0 a0, CP0_STATUS + ehb + mfc0 v0, CP0_CAUSE + ehb + or v1, v0, 0x800000 //EBASE + 0x200 + mtc0 v1, CP0_CAUSE + ehb jr ra nop