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
15
16#if defined(CONFIG_X86_64)
18#elif defined(CONFIG_X86)
20#elif defined(CONFIG_ARM64)
22#elif defined(CONFIG_ARM)
23#include <zephyr/arch/arm/cfi.h>
24#elif defined(CONFIG_RISCV)
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_ */