]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - arch/arm/include/asm/exception.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-focal-kernel.git] / arch / arm / include / asm / exception.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Annotations for marking C functions as exception handlers.
4 *
5 * These should only be used for C functions that are called from the low
6 * level exception entry code and not any intervening C code.
7 */
8 #ifndef __ASM_ARM_EXCEPTION_H
9 #define __ASM_ARM_EXCEPTION_H
10
11 #include <linux/interrupt.h>
12
13 #define __exception __attribute__((section(".exception.text")))
14 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
15 #define __exception_irq_entry __irq_entry
16 #else
17 #define __exception_irq_entry __exception
18 #endif
19
20 #endif /* __ASM_ARM_EXCEPTION_H */