Lines Matching +full:sub +full:- +full:units
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"
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
141 *-----------------------------------------------------------------------------
147 sub sp, sp, #PT_REGS_SIZE
148 stmia sp, {r0 - r12}
160 sub sp, sp, #PT_REGS_SIZE
161 stmia sp, {r0 - r12}
172 sub sp, sp, #PT_REGS_SIZE
173 stmia sp, {r0 - r12} @ Calling r0 - r12
179 mrs saved_psr, spsr @ called from non-FIQ mode, so ok.
205 USER( ldreq r10, [saved_pc, #-4] ) @ get SWI instruction
207 USER( ldr r10, [saved_pc, #-4] ) @ get SWI instruction
220 USER( ldreq scno, [saved_pc, #-4] )
224 USER( ldr scno, [saved_pc, #-4] ) @ get SWI instruction
247 bic scno, scno, #0xff000000 @ mask off SWI op-code
257 TRACE( ldmia sp, {r0 - r3} )
269 2: cmp scno, #(__ARM_NR_BASE - __NR_SYSCALL_BASE)
279 * position to return -EFAULT. Instead, return back to the
280 * instruction and re-enter the user fault handling path trying
285 sub lr, saved_pc, #4
302 cmp scno, #-1 @ skip the syscall?
325 .ifgt __sys_nr - \nr
328 .rept \nr - __sys_nr
336 .ifgt __sys_nr - __NR_syscalls
339 .rept __NR_syscalls - __sys_nr
342 .size \sym, . - \sym
354 #include <calls-eabi.S>
356 #include <calls-oabi.S>
367 cmp scno, #__NR_syscall - __NR_SYSCALL_BASE
407 * Note: off_4k (r5) is always units of 4K. If we can't do the requested
457 #include <calls-oabi.S>