Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Jamie Iles | 5a567d7 | 2011-10-08 11:20:42 +0100 | [diff] [blame] | 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 | |
Alexander Potapenko | be7635e | 2016-03-25 14:22:05 -0700 | [diff] [blame] | 11 | #include <linux/interrupt.h> |
Jamie Iles | 5a567d7 | 2011-10-08 11:20:42 +0100 | [diff] [blame] | 12 | |
Jamie Iles | 5a567d7 | 2011-10-08 11:20:42 +0100 | [diff] [blame] | 13 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
| 14 | #define __exception_irq_entry __irq_entry |
| 15 | #else |
Russell King | c608906 | 2017-11-24 23:54:22 +0000 | [diff] [blame] | 16 | #define __exception_irq_entry |
Jamie Iles | 5a567d7 | 2011-10-08 11:20:42 +0100 | [diff] [blame] | 17 | #endif |
| 18 | |
| 19 | #endif /* __ASM_ARM_EXCEPTION_H */ |