zephyr/tests
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
..
application_development tests: remove incorrect comment from code_relocation for RISCV 2022-10-03 10:09:53 +02:00
arch tests: arch: arm: Fix thread swap test clobbering 2022-10-20 20:04:48 +09:00
benchmarks modules: mbedtls: Replace select statement with depends on for EC 2022-10-07 15:12:42 +02:00
bluetooth Bluetooth: Add unit tests for bt_addr_le_eq 2022-10-19 15:40:18 +03:00
boards include: add missing zephyr/irq.h include 2022-10-17 22:57:39 +09:00
boot tests: boot: add mcuboot test 2022-10-04 14:06:58 -04:00
cmake build: Overlay build vars expand ${ZEPHYR_<module>_MODULE_DIR} 2022-10-13 12:04:38 +02:00
crypto includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
drivers tests: drivers: disk: Replace the MAX function with if and else 2022-10-18 21:11:21 -04:00
kernel kernel: Option to assert on spin lock time 2022-10-18 14:14:12 +02:00
lib tests: Remove explicit newlib nano override 2022-10-19 16:02:51 +02:00
misc tests: misc: iterable_sections: add const specifier for ROM data 2022-10-12 18:42:28 +02:00
net tests: net: dhcpv4: Increase buffer count for the test 2022-10-20 10:01:13 +02:00
posix ztest: remove the obsolete NULL appended to zassert macros 2022-09-09 07:05:38 -04:00
subsys tests: Remove explicit newlib nano override 2022-10-19 16:02:51 +02:00
unit tests: unit: cbprintf: Disable logging 2022-09-19 10:14:23 +00:00
ztest ztest: fix grammar for errors in bad test phases 2022-10-13 06:40:31 -04:00