zephyr/kernel
Andy Ross fb613594c7 kernel/sched: Panic on aborting essential threads
Documentation specifies that aborting/terminating/exiting essential
threads is a system panic condition, but we didn't actually implement
that and allowed it as for other threads. At least one app wants to
exploit this documented behavior as a "watchdog" kind of condition,
and that seems reasonable.  Do what we say we're supposed to do.

This also includes a small fix to a test, which seemed like it was
written to exercise exactly this condition.  Except that it failed to
detect whether or not a system fatal error was actually signaled and
was (incorrectly) indicating "success".  Check that we actually enter
the handler.

Fixes #45545

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2022-05-20 12:34:30 +02:00
..
include kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
paging kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
atomic_c.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
banner.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
cache_handlers.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
CMakeLists.txt kernel: move thread usage routines to own file 2022-01-10 10:38:06 -05:00
compiler_stack_protect.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
condvar.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
device.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
errno.c kernel: Allow Zephyr to use libc's internal errno 2022-05-12 19:06:48 -04:00
events.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
fatal.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
futex.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
idle.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
init.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
Kconfig kernel: Allow Zephyr to use libc's internal errno 2022-05-12 19:06:48 -04:00
Kconfig.vm everywhere: fix typos 2022-03-18 13:24:08 -04:00
kheap.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
mailbox.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
main_weak.c kernel: extract __weak main() into independent file 2021-08-28 08:48:03 -04:00
mem_domain.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
mem_slab.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
mempool.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
mmu.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
msg_q.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
mutex.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
pipes.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
poll.c kernel: workq: Add internal function z_work_submit_to_queue() 2022-05-10 18:39:51 +02:00
queue.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
sched.c kernel/sched: Panic on aborting essential threads 2022-05-20 12:34:30 +02:00
sem.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
smp.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
stack.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
system_work_q.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
thread.c kernel: Fix gathering of runtime thread stats 2022-05-13 10:19:53 -05:00
timeout.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
timer.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
usage.c kernel: Fix gathering of runtime thread stats 2022-05-13 10:19:53 -05:00
userspace.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
userspace_handler.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00
version.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
work.c kernel: workq: Add internal function z_work_submit_to_queue() 2022-05-10 18:39:51 +02:00
xip.c kernel: migrate includes to <zephyr/...> 2022-05-09 09:26:20 +02:00