zephyr/tests/arch/arm
Kevin Townsend 07de2ffbb0 tests: arch: arm: Fix thread swap test clobbering
The thread swap test was making use of a register to point to
ztest_thread_callee_saved_regs_container, which was being clobbered
in the inline assembly code, causing a hard-fault in certain cases.

This commit adds a clobber list of the registers used, causing the
compiler to assign ztest_thread_callee_saved_regs_container to an
appropriate (unclobbered) register.

It also addresses an issue in the v6-m and v8-m.baseline inline
assembler where only 4 of the 8 callee-saved registers were being
set from ztest_thread_callee_saved_regs_container, due to a double
use of `ldmia` on the same four registers. Since v6-m devices can't
operate outside r0-r7 on most instructions, the upper 4 callee-saved
registers are set first with `ldmia`, before setting the lower 4.

Signed-off-by: Kevin Townsend <kevin.townsend@linaro.org>
2022-10-20 20:04:48 +09:00
..
arm_hardfault_validation includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
arm_interrupt tests: Increase stack size when nRF DK serial workaround is enabled 2022-09-06 12:36:40 +02:00
arm_irq_advanced_features
arm_irq_vector_table
arm_irq_zero_latency_levels
arm_mem_protect includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
arm_no_multithreading
arm_ramfunc
arm_runtime_nmi includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
arm_sw_vector_relay
arm_thread_swap tests: arch: arm: Fix thread swap test clobbering 2022-10-20 20:04:48 +09:00
arm_thread_swap_tz boards: arm: stm32l562e_dk_ns: Add flash partitions 2022-09-09 16:40:20 +00:00
arm_tz_wrap_func ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00