xref: /linux/arch/arm64/kernel/probes/kprobes_trampoline.S (revision 6e7fd890f1d6ac83805409e9c346240de2705584)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * trampoline entry and return code for kretprobes.
4 */
5
6#include <linux/linkage.h>
7#include <asm/asm-bug.h>
8#include <asm/assembler.h>
9
10	.text
11
12SYM_CODE_START(__kretprobe_trampoline)
13	/*
14	 * Trigger a breakpoint exception. The PC will be adjusted by
15	 * kretprobe_breakpoint_handler(), and no subsequent instructions will
16	 * be executed from the trampoline.
17	 */
18	brk #KRETPROBES_BRK_IMM
19	ASM_BUG()
20SYM_CODE_END(__kretprobe_trampoline)
21