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>
20 #include <mach/entry-macro.S>
26 #include "entry-header.S"
29 #if defined(CONFIG_TRACE_IRQFLAGS) || defined(CONFIG_CONTEXT_TRACKING)
44 * have tracing, context tracking and rseq debug disabled - the overheads
52 ldr r1, [tsk, #TI_FLAGS] @ re-check for syscall tracing
57 /* perform architecture specific actions before user return */
86 ldr r1, [tsk, #TI_FLAGS] @ re-check for syscall tracing
92 /* Slower path - fall through to work_pending */
103 movlt scno, #(__NR_restart_syscall - __NR_SYSCALL_BASE)
104 ldmia sp, {r0 - r6} @ have to reload r0 - r6
130 /* perform architecture specific actions before user return */
153 *-----------------------------------------------------------------------------
162 stmia sp, {r0 - r12} @ Calling r0 - r12
167 mrs saved_psr, spsr @ called from non-FIQ mode, so ok.
183 #if defined(CONFIG_OABI_COMPAT)
192 USER( ldreq r10, [saved_pc, #-4] ) @ get SWI instruction
194 USER( ldr r10, [saved_pc, #-4] ) @ get SWI instruction
198 #elif defined(CONFIG_AEABI)
201 * Pure EABI user space always put syscall number into scno (r7).
203 #elif defined(CONFIG_ARM_THUMB)
207 USER( ldreq scno, [saved_pc, #-4] )
211 USER( ldr scno, [saved_pc, #-4] ) @ get SWI instruction
221 #if defined(CONFIG_OABI_COMPAT)
233 #elif !defined(CONFIG_AEABI)
234 bic scno, scno, #0xff000000 @ mask off SWI op-code
244 TRACE( ldmia sp, {r0 - r3} )
256 2: cmp scno, #(__ARM_NR_BASE - __NR_SYSCALL_BASE)
262 #if defined(CONFIG_OABI_COMPAT) || !defined(CONFIG_AEABI)
266 * position to return -EFAULT. Instead, return back to the
267 * instruction and re-enter the user fault handling path trying
288 cmp scno, #-1 @ skip the syscall?
319 .ifgt __sys_nr - \nr
322 .rept \nr - __sys_nr
330 .ifgt __sys_nr - __NR_syscalls
333 .rept __NR_syscalls - __sys_nr
336 .size \sym, . - \sym
344 * With EABI a couple syscalls are obsolete and defined as sys_ni_syscall.
348 #include <calls-eabi.S>
350 #include <calls-oabi.S>
361 cmp scno, #__NR_syscall - __NR_SYSCALL_BASE
451 #include <calls-oabi.S>