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>
19 #include "entry-header.S"
22 #if defined(CONFIG_TRACE_IRQFLAGS) || defined(CONFIG_CONTEXT_TRACKING_USER)
37 * have tracing, context tracking and rseq debug disabled - the overheads
45 ldr r1, [tsk, #TI_FLAGS] @ re-check for syscall tracing
75 ldr r1, [tsk, #TI_FLAGS] @ re-check for syscall tracing
81 /* Slower path - fall through to work_pending */
92 movlt scno, #(__NR_restart_syscall - __NR_SYSCALL_BASE)
94 ldmia sp, {r0 - r6} @ have to reload r0 - r6
144 *-----------------------------------------------------------------------------
151 stmia sp, {r0 - r12}
164 stmia sp, {r0 - r12}
176 stmia sp, {r0 - r12} @ Calling r0 - r12
182 mrs saved_psr, spsr @ called from non-FIQ mode, so ok.
199 #if defined(CONFIG_OABI_COMPAT)
208 USER( ldreq r10, [saved_pc, #-4] ) @ get SWI instruction
210 USER( ldr r10, [saved_pc, #-4] ) @ get SWI instruction
214 #elif defined(CONFIG_AEABI)
217 * Pure EABI user space always put syscall number into scno (r7).
219 #elif defined(CONFIG_ARM_THUMB)
223 USER( ldreq scno, [saved_pc, #-4] )
227 USER( ldr scno, [saved_pc, #-4] ) @ get SWI instruction
237 #if defined(CONFIG_OABI_COMPAT)
249 #elif !defined(CONFIG_AEABI)
250 bic scno, scno, #0xff000000 @ mask off SWI op-code
260 TRACE( ldmia sp, {r0 - r3} )
272 2: cmp scno, #(__ARM_NR_BASE - __NR_SYSCALL_BASE)
278 #if defined(CONFIG_OABI_COMPAT) || !defined(CONFIG_AEABI)
282 * position to return -EFAULT. Instead, return back to the
283 * instruction and re-enter the user fault handling path trying
305 cmp scno, #-1 @ skip the syscall?
328 .ifgt __sys_nr - \nr
331 .rept \nr - __sys_nr
339 .ifgt __sys_nr - __NR_syscalls
342 .rept __NR_syscalls - __sys_nr
345 .size \sym, . - \sym
353 * With EABI a couple syscalls are obsolete and defined as sys_ni_syscall.
357 #include <calls-eabi.S>
359 #include <calls-oabi.S>
370 cmp scno, #__NR_syscall - __NR_SYSCALL_BASE
460 #include <calls-oabi.S>