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
common
condvar/condvar_api
context
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
fpu_sharing
gen_isr_table
interrupt soc: nordic: Remove the nRF54L15 EngA 2024-10-21 01:46:39 +01:00
ipi_cascade
ipi_optimize
lifo
mbox
mem_heap/k_heap_api
mem_protect boards: mps3: Add support for corstone300/an552 2024-10-26 03:58:05 +01:00
mem_slab
mp
msgq
mutex
obj_core
obj_tracking
pending
pipe
poll
profiling/profiling_api
queue
sched
semaphore
sleep
smp
smp_abort
smp_boot_delay
smp_suspend
spinlock
stack/stack
threads tests: thread_error_case: no ICOUNT for qemu/xtensa/dc233c/mmu 2024-11-07 11:06:23 -08:00
tickless/tickless_concept
timer tests: timer_behavior: use fabs() instead of abs() 2024-10-30 16:31:15 -05:00
usage/thread_runtime_stats
workq
xip