blob: c56ab8bb419a2cd89eb60b9121b816f7416e4afd [file] [log] [blame]
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Annotations for marking C functions as exception handlers.
*
* These should only be used for C functions that are called from the low
* level exception entry code and not any intervening C code.
*/
#ifndef __ASM_ARM_EXCEPTION_H
#define __ASM_ARM_EXCEPTION_H
#include <linux/interrupt.h>
#ifdef CONFIG_AMLOGIC_ARM_KASAN
#define __exception_irq_entry __irq_entry
#else
#ifdef CONFIG_FUNCTION_GRAPH_TRACER
#define __exception_irq_entry __irq_entry
#else
#define __exception_irq_entry
#endif
#endif
#endif /* __ASM_ARM_EXCEPTION_H */