xref: /linux/arch/csky/kernel/probes/kprobes_trampoline.S (revision 03ab8e6297acd1bc0eedaa050e2a1635c576fd11)
133e53ae1SGuo Ren/* SPDX-License-Identifier: GPL-2.0+ */
233e53ae1SGuo Ren
333e53ae1SGuo Ren#include <linux/linkage.h>
433e53ae1SGuo Ren
533e53ae1SGuo Ren#include <abi/entry.h>
633e53ae1SGuo Ren
7*adf8a61aSMasami HiramatsuENTRY(__kretprobe_trampoline)
833e53ae1SGuo Ren	SAVE_REGS_FTRACE
933e53ae1SGuo Ren
1033e53ae1SGuo Ren	mov	a0, sp /* pt_regs */
1133e53ae1SGuo Ren
1233e53ae1SGuo Ren	jbsr	trampoline_probe_handler
1333e53ae1SGuo Ren
1433e53ae1SGuo Ren	/* use the result as the return-address */
1533e53ae1SGuo Ren	mov	lr, a0
1633e53ae1SGuo Ren
1733e53ae1SGuo Ren	RESTORE_REGS_FTRACE
1833e53ae1SGuo Ren	rts
19*adf8a61aSMasami HiramatsuENDPROC(__kretprobe_trampoline)
20