Lines Matching +full:user +full:- +full:defined

1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/arch/arm/kernel/entry-common.S
14 #include <asm/unistd-oabi.h>
28 #include "entry-header.S"
31 #if defined(CONFIG_TRACE_IRQFLAGS) || defined(CONFIG_CONTEXT_TRACKING_USER)
46 * have tracing, context tracking and rseq debug disabled - the overheads
54 ldr r1, [tsk, #TI_FLAGS] @ re-check for syscall tracing
59 /* perform architecture specific actions before user return */
88 ldr r1, [tsk, #TI_FLAGS] @ re-check for syscall tracing
94 /* Slower path - fall through to work_pending */
105 movlt scno, #(__NR_restart_syscall - __NR_SYSCALL_BASE)
106 ldmia sp, {r0 - r6} @ have to reload r0 - r6
132 /* perform architecture specific actions before user return */
155 *-----------------------------------------------------------------------------
162 stmia sp, {r0 - r12}
175 stmia sp, {r0 - r12}
187 stmia sp, {r0 - r12} @ Calling r0 - r12
193 mrs saved_psr, spsr @ called from non-FIQ mode, so ok.
210 #if defined(CONFIG_OABI_COMPAT)
219 USER( ldreq r10, [saved_pc, #-4] ) @ get SWI instruction
221 USER( ldr r10, [saved_pc, #-4] ) @ get SWI instruction
225 #elif defined(CONFIG_AEABI)
228 * Pure EABI user space always put syscall number into scno (r7).
230 #elif defined(CONFIG_ARM_THUMB)
234 USER( ldreq scno, [saved_pc, #-4] )
238 USER( ldr scno, [saved_pc, #-4] ) @ get SWI instruction
248 #if defined(CONFIG_OABI_COMPAT)
260 #elif !defined(CONFIG_AEABI)
261 bic scno, scno, #0xff000000 @ mask off SWI op-code
271 TRACE( ldmia sp, {r0 - r3} )
283 2: cmp scno, #(__ARM_NR_BASE - __NR_SYSCALL_BASE)
289 #if defined(CONFIG_OABI_COMPAT) || !defined(CONFIG_AEABI)
293 * position to return -EFAULT. Instead, return back to the
294 * instruction and re-enter the user fault handling path trying
316 cmp scno, #-1 @ skip the syscall?
339 .ifgt __sys_nr - \nr
342 .rept \nr - __sys_nr
350 .ifgt __sys_nr - __NR_syscalls
353 .rept __NR_syscalls - __sys_nr
356 .size \sym, . - \sym
364 * With EABI a couple syscalls are obsolete and defined as sys_ni_syscall.
368 #include <calls-eabi.S>
370 #include <calls-oabi.S>
381 cmp scno, #__NR_syscall - __NR_SYSCALL_BASE
471 #include <calls-oabi.S>