blob: 58e039a851af03400dcbf23efe49cc2f0deb67ef [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Jamie Iles5a567d72011-10-08 11:20:42 +01002/*
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
Alexander Potapenkobe7635e2016-03-25 14:22:05 -070011#include <linux/interrupt.h>
Jamie Iles5a567d72011-10-08 11:20:42 +010012
Jamie Iles5a567d72011-10-08 11:20:42 +010013#ifdef CONFIG_FUNCTION_GRAPH_TRACER
14#define __exception_irq_entry __irq_entry
15#else
Russell Kingc6089062017-11-24 23:54:22 +000016#define __exception_irq_entry
Jamie Iles5a567d72011-10-08 11:20:42 +010017#endif
18
19#endif /* __ASM_ARM_EXCEPTION_H */