Explorar o código

libcpu/nuclei: Fix wrong RT_KERNEL_INTERRUPT_LEVEL

RT_KERNEL_INTERRUPT_LEVEL set to 0 is the lowest level.

Signed-off-by: Huaqi Fang <578567190@qq.com>
Huaqi Fang %!s(int64=5) %!d(string=hai) anos
pai
achega
eb00fbeda7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      libcpu/risc-v/nuclei/cpuport.c

+ 1 - 1
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)