Lines Matching +full:1 +full:- +full:v0
6 * Copyright (C) 1995 - 2000, 2001 by Ralf Baechle
13 * to ABI64 calling convention. 64-bit syscalls are also processed
36 dsubu t0, v0, __NR_O32_Linux # check syscall number
43 move a1, v0
88 dsll t0, v0, 3 # offset into table
89 ld t2, (sys32_call_table - (__NR_O32_Linux * 8))(t0)
93 li t0, -EMAXERRNO - 1 # error?
94 sltu t0, t0, v0
96 beqz t0, 1f
99 dnegu v0 # error
101 1: sd v0, PT_R2(sp) # result
106 /* ------------------------------------------------------------------------ */
117 * absolute syscall number is in v0 unless we called syscall(__NR_###)
120 * only defined when compiling with -mabi=32 (CONFIG_32BIT)
125 subu t1, v0, __NR_O32_Linux
126 move a1, v0
127 bnez t1, 1f /* __NR_syscall at offset 0 */
131 1: jal syscall_trace_enter
133 bltz v0, 1f # seccomp failed? Skip syscall
136 ld v0, PT_R2(sp) # Restore syscall (maybe modified)
146 dsubu t0, v0, __NR_O32_Linux # check (new) syscall number
152 1: j syscall_exit
154 /* ------------------------------------------------------------------------ */
160 li v0, EFAULT
161 sd v0, PT_R2(sp)
162 li t0, 1 # set error flag
185 * to the 64-bit syscall handlers.
196 sltiu v0, t0, __NR_O32_Linux_syscalls
199 beqz v0, einval
212 einval: li v0, -ENOSYS