arc: fix invalid parameter check
The desired value is 0x24, not 24. Express all these as hex. Fixes: #15221 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
ed139948a5
commit
49d2812f3e
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ void _Fault(NANO_ESF *esf)
|
|||
#endif
|
||||
|
||||
#ifdef CONFIG_MPU_STACK_GUARD
|
||||
if (vector == 6 && ((parameter == 4) || (parameter == 24))) {
|
||||
if (vector == 0x6 && ((parameter == 0x4) || (parameter == 0x24))) {
|
||||
if (z_check_thread_stack_fail(exc_addr, arc_exc_saved_sp)) {
|
||||
z_NanoFatalErrorHandler(_NANO_ERR_STACK_CHK_FAIL, esf);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue