Add _NANO_ERR_ALLOCATION_FAIL fatal error code
This reason code will be used indicate that the kernel failed to allocate a critical resource (such as a command packet or a timer packet). Change-Id: I6d4c3d96fc70b2b8cab4027b1b8e4febf4d6c474 Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
parent
6b12d608d3
commit
7d2fc8ec22
6 changed files with 15 additions and 0 deletions
|
@ -84,6 +84,10 @@ FUNC_NORETURN void _NanoFatalErrorHandler(unsigned int reason,
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
case _NANO_ERR_ALLOCATION_FAIL:
|
||||||
|
PR_EXC("**** Kernel Allocation Failure! ****\n");
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
PR_EXC("**** Unknown Fatal Error %d! ****\n", reason);
|
PR_EXC("**** Unknown Fatal Error %d! ****\n", reason);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -102,6 +102,10 @@ FUNC_NORETURN void _NanoFatalErrorHandler(
|
||||||
break;
|
break;
|
||||||
#endif /* CONFIG_STACK_CANARIES */
|
#endif /* CONFIG_STACK_CANARIES */
|
||||||
|
|
||||||
|
case _NANO_ERR_ALLOCATION_FAIL:
|
||||||
|
PR_EXC("**** Kernel Allocation Failure! ****\n");
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
PR_EXC("**** Unknown Fatal Error %d! ****\n", reason);
|
PR_EXC("**** Unknown Fatal Error %d! ****\n", reason);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -114,6 +114,10 @@ FUNC_NORETURN void _NanoFatalErrorHandler(
|
||||||
#endif /* CONFIG_STACK_CANARIES */
|
#endif /* CONFIG_STACK_CANARIES */
|
||||||
|
|
||||||
|
|
||||||
|
case _NANO_ERR_ALLOCATION_FAIL:
|
||||||
|
printk("**** Kernel Allocation Failure! ****\n");
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
printk("**** Unknown Fatal Error %d! ****\n", reason);
|
printk("**** Unknown Fatal Error %d! ****\n", reason);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -49,5 +49,6 @@ extern void _SysFatalErrorHandler(unsigned int cause, const NANO_ESF *esf);
|
||||||
#define _NANO_ERR_HW_EXCEPTION (0) /* MPU/Bus/Usage fault */
|
#define _NANO_ERR_HW_EXCEPTION (0) /* MPU/Bus/Usage fault */
|
||||||
#define _NANO_ERR_INVALID_TASK_EXIT (1) /* Invalid task exit */
|
#define _NANO_ERR_INVALID_TASK_EXIT (1) /* Invalid task exit */
|
||||||
#define _NANO_ERR_STACK_CHK_FAIL (2) /* Stack corruption detected */
|
#define _NANO_ERR_STACK_CHK_FAIL (2) /* Stack corruption detected */
|
||||||
|
#define _NANO_ERR_ALLOCATION_FAIL (3) /* Kernel Allocation Failure */
|
||||||
|
|
||||||
#endif /* _ARCH_ARC_V2_ERROR_H_ */
|
#endif /* _ARCH_ARC_V2_ERROR_H_ */
|
||||||
|
|
|
@ -49,5 +49,6 @@ extern void _SysFatalErrorHandler(unsigned int, const NANO_ESF *);
|
||||||
#define _NANO_ERR_HW_EXCEPTION (0) /* MPU/Bus/Usage fault */
|
#define _NANO_ERR_HW_EXCEPTION (0) /* MPU/Bus/Usage fault */
|
||||||
#define _NANO_ERR_INVALID_TASK_EXIT (1) /* Invalid task exit */
|
#define _NANO_ERR_INVALID_TASK_EXIT (1) /* Invalid task exit */
|
||||||
#define _NANO_ERR_STACK_CHK_FAIL (2) /* Stack corruption detected */
|
#define _NANO_ERR_STACK_CHK_FAIL (2) /* Stack corruption detected */
|
||||||
|
#define _NANO_ERR_ALLOCATION_FAIL (3) /* Kernel Allocation Failure */
|
||||||
|
|
||||||
#endif /* _ARCH_ARM_CORTEXM_ERROR_H_ */
|
#endif /* _ARCH_ARM_CORTEXM_ERROR_H_ */
|
||||||
|
|
|
@ -196,6 +196,7 @@ typedef struct nanoIsf {
|
||||||
#define _NANO_ERR_GEN_PROT_FAULT (2) /* General protection fault */
|
#define _NANO_ERR_GEN_PROT_FAULT (2) /* General protection fault */
|
||||||
#define _NANO_ERR_INVALID_TASK_EXIT (3) /* Invalid task exit */
|
#define _NANO_ERR_INVALID_TASK_EXIT (3) /* Invalid task exit */
|
||||||
#define _NANO_ERR_STACK_CHK_FAIL (4) /* Stack corruption detected */
|
#define _NANO_ERR_STACK_CHK_FAIL (4) /* Stack corruption detected */
|
||||||
|
#define _NANO_ERR_ALLOCATION_FAIL (5) /* Kernel Allocation Failure */
|
||||||
|
|
||||||
#ifndef _ASMLANGUAGE
|
#ifndef _ASMLANGUAGE
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue