zephyr/tests/kernel
Robin Kastberg 580e93e9b4 arm: tests: kernel: fix bug in fatal_exception test
In ARM architectures the entry_cpu_exception_extend calls
svc #0 when trying to generate a `K_ERR_CPU_EXCEPTION`, however
z_arm_svc calls z_do_oops with a stack frame only, and gets the
reason from `r0`. This means that the test working was just lucky
and running it with another compiler (or setting the value of r0
before the svc #0 call, made the test fail).

Cortex-A/R 32-bit architectures was doing a BKPT, this works better
but will not be a hard exception when debugger is attached.

I switched all the Cortex 32-bits to the ARM specified undefined
instruction.

Also RISC-V has a designated unimp instruction that should be used to
guarantee trap.

Signed-off-by: Robin Kastberg <robin.kastberg@iar.com>
2024-11-07 11:06:34 -08:00
..
cache boards: rename qemu_xtensa to qemu_xtensa/dc233c 2024-10-02 09:58:36 +02:00
common test: kernel/common: custom MAX_THREAD_BYTES for imx95 SMP 2024-09-11 09:34:04 +02:00
condvar/condvar_api
context tests/kernel/context: correct the way to get IRQ number of APIC TSC Timer 2024-09-23 14:10:27 +01:00
device tests/kernel/device: add missing #power-domain-cells in overlays 2024-10-30 08:53:49 -05:00
early_sleep
events
fatal arm: tests: kernel: fix bug in fatal_exception test 2024-11-07 11:06:34 -08:00
fifo everywhere: replace double words 2024-06-25 06:05:35 -04:00
fpu_sharing twister: s/riscv(32|64)/riscv 2024-02-26 12:49:06 +01:00
gen_isr_table tests: gen_isr_table: multilevel: cleanup filter & Kconfigs 2024-10-02 10:08:19 +02:00
interrupt soc: nordic: Remove the nRF54L15 EngA 2024-10-21 01:46:39 +01:00
ipi_cascade tests: Add test for IPI cascades 2024-06-21 20:49:11 -04:00
ipi_optimize tests: Add IPI_OPTIMIZE tests 2024-06-04 22:35:54 -04:00
lifo
mbox hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
mem_heap/k_heap_api
mem_protect boards: mps3: Add support for corstone300/an552 2024-10-26 03:58:05 +01:00
mem_slab hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
mp arch: rename arch_start_cpu() to arch_cpu_start() 2024-03-25 09:58:35 +00:00
msgq
mutex tests: rename intel_adsp_ace30.conf to intel_adsp_ace30_ptl.conf 2024-10-03 22:00:54 +01:00
obj_core tests: remove misnamed platforms from platform_exclude 2024-09-16 10:07:51 +02:00
obj_tracking
pending
pipe arch: define struct arch_esf and deprecate z_arch_esf_t 2024-06-04 14:02:51 -05:00
poll tests: poll: fix misconstructed k_poll_event test 2024-06-12 10:24:21 +02:00
profiling/profiling_api tests: kernel: remove pm from profiling test 2024-04-25 09:55:08 +00:00
queue tests: rename intel_adsp_ace30.conf to intel_adsp_ace30_ptl.conf 2024-10-03 22:00:54 +01:00
sched everywhere: replace double words 2024-06-25 06:05:35 -04:00
semaphore tests: kernel: fix test groups for semaphore/mutex 2024-09-17 05:24:09 -04:00
sleep
smp tests: kernel: smp: Test cpu affinity with custom ROM offset 2024-10-11 13:17:25 -04:00
smp_abort arch/x86: Make irq_offload SMP-safe on x86_64 2024-06-04 07:57:06 +02:00
smp_boot_delay hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
smp_suspend
spinlock arch: rename arch_start_cpu() to arch_cpu_start() 2024-03-25 09:58:35 +00:00
stack/stack everywhere: replace double words 2024-06-25 06:05:35 -04:00
threads tests: thread_error_case: no ICOUNT for qemu/xtensa/dc233c/mmu 2024-11-07 11:06:23 -08:00
tickless/tickless_concept tests: tickless: do not enable PM 2024-04-25 09:55:08 +00:00
timer tests: timer_behavior: use fabs() instead of abs() 2024-10-30 16:31:15 -05:00
usage/thread_runtime_stats tests: thread_runtime_stats: Skip the test on virtual Cortex-R8 platform 2024-10-01 09:58:22 +02:00
workq everywhere: replace double words 2024-06-22 05:40:22 -04:00
xip everywhere: replace double words 2024-06-25 06:05:35 -04:00