zephyr/tests/kernel
Andy Ross 13d3036e37 tests/msgq_usage: Correct memory usage for cache-incoherent platforms
When CONFIG_KERNEL_COHERENCE=y (e.g on the various intel_adsp
platforms under SMP) it's not legal to share stack memory between
CPUs, because the stack is cached, and the L1 cache is incoherent.
The kernel will automatically detect the mistake when the memory
contains a kernel object (spinlock, IPC object, etc...).  But here the
test was just passing async buffers into the msgq layer, and nothing
watches that.

The fix is simple: make them static.

Fixes #35857

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2021-10-06 17:40:53 -04:00
..
common tests: common: add test for ffs function 2021-09-07 11:30:43 -04:00
condvar/condvar_api cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
context tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
device pm: device: Remove PM_DEVICE_STATE_FORCE_SUSPEND 2021-08-27 17:47:10 -04:00
early_sleep tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
fatal tests: fatal/exception: pin stack before stack overflow test 2021-08-26 21:16:22 -04:00
fifo tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
fpu_sharing cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
gen_isr_table tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
interrupt tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
lifo tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
mbox tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
mem_heap tests/kernel/mheap_api_concept: Add sys_multi_heap test 2021-10-01 20:38:35 -04:00
mem_protect Tests: memory protect: add some error test cases 2021-09-29 06:29:19 -04:00
mem_slab tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
mp tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
msgq tests/msgq_usage: Correct memory usage for cache-incoherent platforms 2021-10-06 17:40:53 -04:00
mutex cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
pending cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
pipe cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
poll cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
profiling/profiling_api cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
queue cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
sched tests: kernel: sched: schedule_api: enlarge timeslice criterion 2021-09-30 20:39:31 -04:00
semaphore cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
sleep cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
smp tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
spinlock cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
stack/stack cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
threads tests/kernel/threads_apis: Add case for CPU_MASK_PIN_ONLY 2021-09-28 20:15:05 -04:00
tickless/tickless_concept cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
timer tests: kernel: timer api with real time slot in test_sleep_abs 2021-09-10 16:20:30 -04:00
workq tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
xip tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00