Skip to content

Commit a8928c8

Browse files
committed
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.
1 parent bfebcac commit a8928c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcpu/mips/common/exception.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void rt_hw_interrupt_enable(rt_base_t level)
7474
/**
7575
* exception handle table
7676
*/
77-
#define RT_EXCEPTION_MAX 31
77+
#define RT_EXCEPTION_MAX 32
7878
exception_func_t sys_exception_handlers[RT_EXCEPTION_MAX];
7979

8080
/**

0 commit comments

Comments
 (0)