Jamie Iles | 5a567d7 | 2011-10-08 11:20:42 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Annotations for marking C functions as exception handlers. |
| 3 | * |
| 4 | * These should only be used for C functions that are called from the low |
| 5 | * level exception entry code and not any intervening C code. |
| 6 | */ |
| 7 | #ifndef __ASM_ARM_EXCEPTION_H |
| 8 | #define __ASM_ARM_EXCEPTION_H |
| 9 | |
Alexander Potapenko | be7635e | 2016-03-25 14:22:05 -0700 | [diff] [blame^] | 10 | #include <linux/interrupt.h> |
Jamie Iles | 5a567d7 | 2011-10-08 11:20:42 +0100 | [diff] [blame] | 11 | |
| 12 | #define __exception __attribute__((section(".exception.text"))) |
| 13 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
| 14 | #define __exception_irq_entry __irq_entry |
| 15 | #else |
| 16 | #define __exception_irq_entry __exception |
| 17 | #endif |
| 18 | |
| 19 | #endif /* __ASM_ARM_EXCEPTION_H */ |