Lines Matching +full:1 +full:v0
81 * syscall number is in v0 unless we called syscall(__NR_###)
84 subu t2, v0, __NR_O32_Linux
85 bnez t2, 1f /* __NR_syscall at offset 0 */
88 1:
89 LONG_S v0, TI_SYSCALL($28) # Save v0 as syscall number
97 subu v0, v0, __NR_O32_Linux # check syscall number
98 sltiu t0, v0, __NR_O32_Linux_syscalls
101 sll t0, v0, 2
110 li t0, -EMAXERRNO - 1 # error?
111 sltu t0, t0, v0
113 beqz t0, 1f
116 negu v0 # error
118 1: sw v0, PT_R2(sp) # result
131 bltz v0, 1f # seccomp failed? Skip syscall
134 lw v0, PT_R2(sp) # Restore syscall (maybe modified)
141 1: j syscall_exit
150 li v0, EFAULT
151 sw v0, PT_R2(sp)
152 li t0, 1 # set error flag
176 li v0, ENOSYS # error
177 sw v0, PT_R2(sp)
178 li t0, 1 # set error flag
185 sltiu v0, t0, __NR_O32_Linux_syscalls
188 beqz v0, einval
204 einval: li v0, -ENOSYS