123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- #ifndef ZEPHYR_INCLUDE_FATAL_H
- #define ZEPHYR_INCLUDE_FATAL_H
- #include <arch/cpu.h>
- #include <toolchain.h>
- enum k_fatal_error_reason {
-
- K_ERR_CPU_EXCEPTION,
-
- K_ERR_SPURIOUS_IRQ,
-
- K_ERR_STACK_CHK_FAIL,
-
- K_ERR_KERNEL_OOPS,
-
- K_ERR_KERNEL_PANIC
-
- };
- FUNC_NORETURN void k_fatal_halt(unsigned int reason);
- void k_sys_fatal_error_handler(unsigned int reason, const z_arch_esf_t *esf);
- void z_fatal_error(unsigned int reason, const z_arch_esf_t *esf);
- #endif
|