zephyr/tests/kernel/mem_protect
Watson Zeng e451bf44fe tests: mem_protest: workaround aggressive optimization
We have some static variables var, zeroed_var and bss_var
in mem_partition.c and we only assert the value of them in
the same file, so the compiler may pre-calculate it in compile
stage, it's fine usually.
But for variable zeroed_var (= 20420), we force to put it in bss
section in link stage, the value will change in bss clean stage, so
we will get a wrong result.
Let's add volatile for these variables to disable pre-calculation.

Signed-off-by: Watson Zeng <zhiwei@synopsys.com>
2021-06-28 09:15:43 -04:00
..
demand_paging kernel: mmu: z_backing_store* to k_mem_paging_backing_store* 2021-05-28 11:33:22 -04:00
futex
mem_map tests: mem_protect/mem_map: remove unused assignment to cnt 2021-05-11 15:45:39 -05:00
mem_protect tests: mem_protest: workaround aggressive optimization 2021-06-28 09:15:43 -04:00
obj_validation kernel: remove object tracing 2021-05-07 22:10:21 -04:00
protection arch: mem protect Kconfig cleanups 2020-11-18 08:02:08 -05:00
stack_random tests: kernel: Add missing kernel tag to tests 2021-03-05 14:52:55 -05:00
stackprot tests: Avoid out-of-bounds array access on SPARC 2020-11-13 14:53:55 -08:00
sys_sem tests: sys_sem: add k_thread_join() calls 2020-10-28 10:29:49 -07:00
syscalls tests: kernel: mem_protect: add Ronoth Lodev to supported boards 2021-03-18 08:48:30 -05:00
userspace userspace: rename _is_user_context -> k_is_user_context 2021-04-01 05:34:17 -04:00