pmd-sky/lib/include/nitro/os/terminate_proc.h
2026-05-06 20:06:31 -07:00

12 lines
510 B
C

#ifndef NITRO_OS_TERMINATE_PROC_H_
#define NITRO_OS_TERMINATE_PROC_H_
// Calls EnableIrqFlag and WaitForInterrupt in an infinite loop.
// This is called on fatal errors to hang the program indefinitely.
void WaitForever2(void);
// Presumably blocks until the program receives an interrupt.
// This just calls (in Ghidra terminology) coproc_moveto_Wait_for_interrupt(0). See https://en.wikipedia.org/wiki/ARM_architecture_family#Coprocessors.
void WaitForInterrupt(void);
#endif // NITRO_OS_TERMINATE_PROC_H_