k_thread_abort(): assert if abort essential thread
Previously, this was only done if an essential thread self-exited, and was a runtime check that generated a kernel panic. Now if any thread has k_thread_abort() called on it, and that thread is essential to the system operation, this check is made. It is now an assertion. _NANO_ERR_INVALID_TASK_EXIT checks and printouts removed since this is now an assertion. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
7d627c5971
commit
8eaff5d6d2
15 changed files with 8 additions and 35 deletions
|
@ -25,7 +25,6 @@ extern "C" {
|
|||
#define STACK_ALIGN 4
|
||||
|
||||
#define _NANO_ERR_CPU_EXCEPTION (0) /* Any unhandled exception */
|
||||
#define _NANO_ERR_INVALID_TASK_EXIT (1) /* Invalid task exit */
|
||||
#define _NANO_ERR_STACK_CHK_FAIL (2) /* Stack corruption detected */
|
||||
#define _NANO_ERR_ALLOCATION_FAIL (3) /* Kernel Allocation Failure */
|
||||
#define _NANO_ERR_SPURIOUS_INT (4) /* Spurious interrupt */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue