zephyr/tests/kernel/fatal/exception
Eugeniy Paltsev ea8c4b91b5 tests: exception: workaround agressive optimization
The memset in the 'blow_up_stack' function can be optimized
away as it is called in the end of the function on the buffer
allocated on the stack (so it has 'no' effect on program
execution)

The 'stack_smasher' call can be optimized away as it's results
isn't used anywhere and stack_smasher function has no visible
side effects.

Fix that by disabling optimization on these functions.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
2020-10-06 11:41:23 -04:00
..
src tests: exception: workaround agressive optimization 2020-10-06 11:41:23 -04:00
CMakeLists.txt
README
prj.conf
prj_arm_fpu_sharing.conf
prj_armv8m_mpu_stack_guard.conf
protection_no_userspace.conf
sentinel.conf tests: explicitly disable HW Stack Protection when needed 2020-09-24 15:42:09 -05:00
testcase.yaml

README

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.