xref: /linux/arch/csky/kernel/probes/kprobes_trampoline.S (revision 26fbb4c8c7c3ee9a4c3b4de555a8587b5a19154e)
1/* SPDX-License-Identifier: GPL-2.0+ */
2
3#include <linux/linkage.h>
4
5#include <abi/entry.h>
6
7ENTRY(kretprobe_trampoline)
8	SAVE_REGS_FTRACE
9
10	mov	a0, sp /* pt_regs */
11
12	jbsr	trampoline_probe_handler
13
14	/* use the result as the return-address */
15	mov	lr, a0
16
17	RESTORE_REGS_FTRACE
18	rts
19ENDPROC(kretprobe_trampoline)
20