7032027f1f
The read/write_kernel_stack tests are confusingly named and incorrectly implemented for ARM; they are intended to test that user mode threads cannot read or write their privileged stacks. The privileged stacks on ARM are not relative to the user stack, and thus their location cannot be computed from the user stack. To find the privileged stack on ARM, we have to use _k_priv_stack_find(), which we do during setup in test_main() rather than from the usermode thread itself. Accessing thread_stack directly from the test function requires making it non-static in ztest, so we also give it a ztest_ prefix to avoid collisions with other test programs. Rename the test functions and global pointer variable to more accurately reflect their purpose. Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov> |
||
---|---|---|
.. | ||
include | ||
src | ||
test | ||
CMakeLists.txt | ||
Kconfig |