This test takes an interrupt lock and tries to call z_swap_unlocked() while holding it. That's not legal (in the general case it means you're breaking a caller's lock!), though in this particular case it was safe because we'll never return to this. Regardless, there is a natural z_swap_irqlock() that releases the lock atomically. Use that. Signed-off-by: Andy Ross <andrew.j.ross@intel.com> |
||
|---|---|---|
| .. | ||
| src | ||
| CMakeLists.txt | ||
| prj_arm_fpu_sharing.conf | ||
| prj_armv8m_mpu_stack_guard.conf | ||
| prj.conf | ||
| protection_no_userspace.conf | ||
| README | ||
| sentinel.conf | ||
| testcase.yaml | ||
This test case verifies that kernel fatal error handling works correctly. If a thread causes a CPU exception, and it is not in an ISR or "essential" thread, the thread gets aborted and the rest of the system executes normally.