pbl_thread_create() takes a struct pbl_thread_attr: entry, priority,
privileged flag, a caller-owned stack and up to four MpuRegions that are
switched in with the thread. With CONFIG_USERSPACE it also takes the
memory the thread’s syscalls may use and the stack they run on
(Syscalls).
debug.h covers what core dumps, fault handling, stack checks and telemetry
need: a thread walk with saved registers in the canonical order the core dump
format expects, saved PC/LR/CONTROL of a blocked thread, stack bounds and
high-water marks, and a run-time stats snapshot.
Generated from PebbleOS 3a7b71785. This page is maintained in the pebbleos repository: docs/kernel/threads.md.