Zephyr API Documentation
4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
cfi.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2025 NXP Semicondutors
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
/*
8
* DWARF Control Flow Integrity (CFI) support for architectures.
9
*/
10
11
#ifndef ZEPHYR_INCLUDE_CFI_H_
12
#define ZEPHYR_INCLUDE_CFI_H_
13
14
#include <
zephyr/arch/arch_interface.h
>
15
16
#if defined(CONFIG_X86_64)
17
#include <
zephyr/arch/x86/intel64/cfi.h
>
18
#elif defined(CONFIG_X86)
19
#include <
zephyr/arch/x86/ia32/cfi.h
>
20
#elif defined(CONFIG_ARM64)
21
#include <
zephyr/arch/arm64/cfi.h
>
22
#elif defined(CONFIG_ARM)
23
#include <
zephyr/arch/arm/cfi.h
>
24
#elif defined(CONFIG_RISCV)
25
#include <
zephyr/arch/riscv/cfi.h
>
26
#endif
27
28
/*
29
* Inform the unwinder that the return address is undefined.
30
* This prevents bogus unwinding and potential faults.
31
*/
32
#ifndef ARCH_CFI_UNDEFINED_RETURN_ADDRESS
33
#define ARCH_CFI_UNDEFINED_RETURN_ADDRESS()
34
#endif
35
36
#endif
/* ZEPHYR_INCLUDE_CFI_H_ */
arch_interface.h
cfi.h
cfi.h
cfi.h
cfi.h
cfi.h
zephyr
arch
cfi.h
Generated on
for Zephyr API Documentation by
1.14.0