Преглед на файлове

MIPS:fix the RT_EXCEPTION_MAX value

from <see mips run> know that cp0_cause's ExcCode have 5 bit filed and
the max exception is 32.
michael преди 4 години
родител
ревизия
a8928c881e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      libcpu/mips/common/exception.c

+ 1 - 1
libcpu/mips/common/exception.c

@@ -74,7 +74,7 @@ void rt_hw_interrupt_enable(rt_base_t level)
 /**
  * exception handle table
  */
-#define RT_EXCEPTION_MAX 31
+#define RT_EXCEPTION_MAX 32
 exception_func_t sys_exception_handlers[RT_EXCEPTION_MAX];
 
 /**