Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
fatal.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Intel Corporation.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
11#ifndef ZEPHYR_INCLUDE_FATAL_H
12#define ZEPHYR_INCLUDE_FATAL_H
13
14#include <arch/cpu.h>
15#include <toolchain.h>
16
26
29
32
35
38
39 /* TODO: add more codes for exception types that are common across
40 * architectures
41 */
42};
43
52FUNC_NORETURN void k_fatal_halt(unsigned int reason);
53
83void k_sys_fatal_error_handler(unsigned int reason, const z_arch_esf_t *esf);
84
99void z_fatal_error(unsigned int reason, const z_arch_esf_t *esf);
100
103#endif /* ZEPHYR_INCLUDE_FATAL_H */
k_fatal_error_reason
Definition: fatal.h:23
FUNC_NORETURN void k_fatal_halt(unsigned int reason)
Halt the system on a fatal error.
void k_sys_fatal_error_handler(unsigned int reason, const z_arch_esf_t *esf)
Fatal error policy handler.
Definition: main.c:49
@ K_ERR_STACK_CHK_FAIL
Definition: fatal.h:31
@ K_ERR_SPURIOUS_IRQ
Definition: fatal.h:28
@ K_ERR_KERNEL_PANIC
Definition: fatal.h:37
@ K_ERR_KERNEL_OOPS
Definition: fatal.h:34
@ K_ERR_CPU_EXCEPTION
Definition: fatal.h:25
Macros to abstract toolchain specific capabilities.