1 /* SPDX-License-Identifier: GPL-2.0 */
3 * This file provides both A32 and T32 versions, in accordance with the
6 * Copyright (C) 2018 ARM Limited
9 #include <linux/linkage.h>
10 #include <asm/asm-offsets.h>
11 #include <asm/unistd.h>
13 #define ARM_ENTRY(name) \
16 #define ARM_ENDPROC(name) \
17 .type name, %function; \
25 .pad #COMPAT_SIGFRAME_REGS_OFFSET
27 ARM_ENTRY(__kernel_sigreturn_arm)
28 mov r7, #__NR_compat_sigreturn
31 ARM_ENDPROC(__kernel_sigreturn_arm)
35 .pad #COMPAT_RT_SIGFRAME_REGS_OFFSET
37 ARM_ENTRY(__kernel_rt_sigreturn_arm)
38 mov r7, #__NR_compat_rt_sigreturn
41 ARM_ENDPROC(__kernel_rt_sigreturn_arm)
46 .pad #COMPAT_SIGFRAME_REGS_OFFSET
48 ARM_ENTRY(__kernel_sigreturn_thumb)
49 mov r7, #__NR_compat_sigreturn
52 ARM_ENDPROC(__kernel_sigreturn_thumb)
56 .pad #COMPAT_RT_SIGFRAME_REGS_OFFSET
58 ARM_ENTRY(__kernel_rt_sigreturn_thumb)
59 mov r7, #__NR_compat_rt_sigreturn
62 ARM_ENDPROC(__kernel_rt_sigreturn_thumb)