Benchmarks Documentation Examples Repository Blog Contact

Signal handling

Function-like Macros

Unknown member type Signals

void os_deliver_signal(struct OS_thread_t *thread, uint32_t signals)

As this routine is only designed to be called from pend_sv handler, it has strict requirements on state of thread. It must be in state just before being resumed.

thread thread which gets signal handler injected

signals mask of signals being delivered

  • thread thread which gets signal handler injected
  • signals mask of signals being delivered

int os_signal(int signo, void(*sighandler)(int))

Kernel implementation of signal syscall.

int os_kill(uint8_t thread, uint8_t signal_id)

Kernel implementation of kill syscall.

64kB of protected memory ought to be enough for everyone.