mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 08:55:31 +07:00
c608906165
Avoid adding kprobes to any of the kernel entry/exit or startup assembly code, or code in the identity-mapped region. This code does not conform to the standard C conventions, which means that the expectations of the kprobes code is not forfilled. Placing kprobes at some of these locations results in the kernel trying to return to userspace addresses while retaining the CPU in kernel mode. Tested-by: Naresh Kamboju <naresh.kamboju@linaro.org> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
20 lines
495 B
C
20 lines
495 B
C
/* 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_FUNCTION_GRAPH_TRACER
|
|
#define __exception_irq_entry __irq_entry
|
|
#else
|
|
#define __exception_irq_entry
|
|
#endif
|
|
|
|
#endif /* __ASM_ARM_EXCEPTION_H */
|