mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-09 13:15:21 +00:00
Dynamic kernel objects enforce that the permission state of an object is also a reference count; using a kernel object without permission regardless of caller privilege level is a programming bug. However, this is not the case for static objects. In particular, supervisor threads are allowed to use any object they like without worrying about permissions, and the logic here was causing cleanup functions to be called over and over again on kernel objects that were actually in use. The automatic cleanup mechanism was intended for dynamic objects anyway, so just skip it entirely for static objects. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com> |
||
---|---|---|
.. | ||
include | ||
atomic_c.c | ||
CMakeLists.txt | ||
compiler_stack_protect.c | ||
device.c | ||
errno.c | ||
idle.c | ||
init.c | ||
int_latency_bench.c | ||
Kconfig | ||
Kconfig.power_mgmt | ||
mailbox.c | ||
mem_domain.c | ||
mem_slab.c | ||
mempool.c | ||
msg_q.c | ||
mutex.c | ||
pipes.c | ||
poll.c | ||
queue.c | ||
sched.c | ||
sem.c | ||
smp.c | ||
stack.c | ||
system_work_q.c | ||
thread_abort.c | ||
thread.c | ||
timeout.c | ||
timer.c | ||
userspace_handler.c | ||
userspace.c | ||
version.c | ||
work_q.c |