zephyr/kernel/include
Mathieu Choplain 5183fc5693 kernel: assert no spinlock is held on swap when !USE_SWITCH
The do_swap() routine used when CONFIG_USE_SWITCH=y asserts that caller
thread does not hold any spinlock when CONFIG_SPIN_VALIDATE is enabled.
However, there is no similar check in place when CONFIG_USE_SWITCH=n.

Copy this assertion in the USE_SWITCH=n implementation of z_swap_irqlock().

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
2025-07-24 02:47:21 -04:00
..
gen_offset.h arch: remove the use of z_arch_esf_t completely from internal 2024-06-04 14:02:51 -05:00
ipi.h kernel: Add CONFIG_IPI_OPTIMIZE 2024-06-04 22:35:54 -04:00
kernel_arch_interface.h arch: xtensa: Add support for lazy HiFi ctx switching 2025-07-20 12:25:17 -04:00
kernel_internal.h kernel: mempool: decouple simple alloc from aligned_alloc 2025-04-01 22:13:04 +02:00
kernel_offsets.h kernel: Move current_fp field out of z_kernel 2025-03-14 05:47:10 +01:00
kernel_tls.h
ksched.h kernel: move z_sched_lock inside k_sched_lock 2025-07-08 13:38:48 -05:00
kswap.h kernel: assert no spinlock is held on swap when !USE_SWITCH 2025-07-24 02:47:21 -04:00
kthread.h kernel: Streamline z_is_thread_ready() 2025-01-28 18:14:22 +01:00
mmu.h kernel: mm: rename z_num_pagefaults_get to k_mem_num_* 2024-06-12 21:13:26 -04:00
offsets_short.h kernel: Move current_fp field out of z_kernel 2025-03-14 05:47:10 +01:00
priority_q.h kernel: priority_q: fix comparison of int of different signs 2025-05-13 10:05:52 +02:00
timeout_q.h kernel: timeout: z_add_timeout to return expiration tick 2025-04-15 19:09:33 +02:00
wait_q.h kernel: move priority queue handling to own file/header 2024-03-02 15:06:45 +01:00