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
83 * absolute syscall number is in v0 unless we called syscall(__NR_###)
86 * only defined when compiling with -mabi=32 (CONFIG_32BIT)
90 subu t2, v0, __NR_O32_Linux
91 bnez t2, 1f /* __NR_syscall at offset 0 */
94 1:
95 LONG_S v0, TI_SYSCALL($28) # Save v0 as syscall number
104 dsll t0, v0, 3 # offset into table
105 ld t2, (sys32_call_table - (__NR_O32_Linux * 8))(t0)
109 li t0, -EMAXERRNO - 1 # error?
110 sltu t0, t0, v0
112 beqz t0, 1f
115 dnegu v0 # error
117 1: sd v0, PT_R2(sp) # result
122 /* ------------------------------------------------------------------------ */
134 bltz v0, 1f # seccomp failed? Skip syscall
137 ld v0, PT_R2(sp) # Restore syscall (maybe modified)
147 dsubu t0, v0, __NR_O32_Linux # check (new) syscall number
153 1: j syscall_exit
155 /* ------------------------------------------------------------------------ */
161 li v0, EFAULT
162 sd v0, PT_R2(sp)
163 li t0, 1 # set error flag
186 * to the 64-bit syscall handlers.
197 sltiu v0, t0, __NR_O32_Linux_syscalls
200 beqz v0, einval
213 einval: li v0, -ENOSYS