1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Author: Patrick Stählin <me@packi.ch>
5 #include <linux/linkage.h>
8 #include <asm/asm-offsets.h>
13 .macro save_all_base_regs
46 .macro restore_all_base_regs
78 SYM_CODE_START(arch_rethook_trampoline)
79 addi sp, sp, -(PT_SIZE_ON_STACK)
82 move a0, sp /* pt_regs */
84 call arch_rethook_trampoline_callback
86 /* use the result as the return-address */
90 addi sp, sp, PT_SIZE_ON_STACK
93 SYM_CODE_END(arch_rethook_trampoline)