Skip to content
Commit 302b192d authored by Keith Packard's avatar Keith Packard Committed by Benjamin Cabé
Browse files

tests/kernel: Avoid C library calls from interrupt handlers



On arm64, GCC feels free to use floating point registers for essentially
anything unless we build with -mgeneral-regs-only. After the FPU gets used
in an interrupt handler, interrupts are disabled as there's no place to
save the registers during a nested exception. As the C library may be built
separately without this flag, we cannot use any of its functions or risk
having nested exceptions fail.

Switch printk usage to k_str_out and stick to (mostly) Zephyr internal
functions to ensure nested interrupts work correctly.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent 9051e2ea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment