zephyr/tests/kernel/threads/thread_stack
Andy Ross 95bcba5946 tests/kernel/thread_stack: Fix KERNEL_COHERENCE interactions
Thread stack memory on coherence platforms needs to be linked into a
special section (so it can be cached).

Also, the test_idle_stack case just can't work with coherence.  It's
measuring the CPU's idle stack's unused data, which was initialized at
boot from CPU0, and not necessarily the CPU on which the test is
running.  In practice on intel_adsp_cavs15, our CPU has stale zeroes
in the cache for its unused stack area (presumably from a firmware
memory clear at boot or something?).  Making this work would require a
cache invalidate on all CPUs at boot time before the idle threads
start, we can't do it here in the test because we don't know where the
idle stack pointer is.

Too much work for an esoteric stack size test, basically.  Just
disable on these platforms.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2021-02-11 14:47:40 -05:00
..
src tests/kernel/thread_stack: Fix KERNEL_COHERENCE interactions 2021-02-11 14:47:40 -05:00
CMakeLists.txt
prj.conf
prj_armv8m_mpu_stack_guard.conf tests: kernel: thread: increase heap mem pool size 2021-01-22 12:39:25 -05:00
testcase.yaml