Initialization of local variable 'illegal' can't be optimized, or the program will jump to the memory contains random value which causes the unexpected behavior. Add volatile to local variable 'illegal' to prevent compiler optimization. Signed-off-by: Jim Shu <cwshu@andestech.com> |
||
|---|---|---|
| .. | ||
| src | ||
| CMakeLists.txt | ||
| prj_arm_fp_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.