summaryrefslogtreecommitdiff
path: root/libcpu/risc-v
diff options
context:
space:
mode:
authorHuaqi Fang <[email protected]>2020-09-03 18:10:08 +0800
committerHuaqi Fang <[email protected]>2020-09-03 18:10:08 +0800
commiteb00fbeda7d9139805a5cf525779d15022188f18 (patch)
tree3230089475d0305500eb977e4c0c57723667798e /libcpu/risc-v
parentf3d1e7113171f6e9c2d16dc6725a2f08108931ba (diff)
libcpu/nuclei: Fix wrong RT_KERNEL_INTERRUPT_LEVEL
RT_KERNEL_INTERRUPT_LEVEL set to 0 is the lowest level. Signed-off-by: Huaqi Fang <[email protected]>
Diffstat (limited to 'libcpu/risc-v')
-rw-r--r--libcpu/risc-v/nuclei/cpuport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/risc-v/nuclei/cpuport.c b/libcpu/risc-v/nuclei/cpuport.c
index fad9afdf4c..e456438f70 100644
--- a/libcpu/risc-v/nuclei/cpuport.c
+++ b/libcpu/risc-v/nuclei/cpuport.c
@@ -19,7 +19,7 @@
#define SYSTICK_TICK_CONST (SOC_TIMER_FREQ / RT_TICK_PER_SECOND)
/* Interrupt level for kernel systimer interrupt and software timer interrupt */
-#define RT_KERNEL_INTERRUPT_LEVEL 1
+#define RT_KERNEL_INTERRUPT_LEVEL 0
/* Initial CSR MSTATUS value when thread created */
#define RT_INITIAL_MSTATUS (MSTATUS_MPP | MSTATUS_MPIE | MSTATUS_FS_INITIAL)