Lines Matching +full:1 +full:- +full:v0
6 * Copyright (C) 1995-99, 2000- 02, 06 Ralf Baechle <ralf@linux-mips.org>
22 #include <asm/asm-offsets.h>
51 bltz t4, bad_stack # -> sp is bad
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
95 bnez t0, syscall_trace_entry # -> yes
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
123 /* ------------------------------------------------------------------------ */
131 bltz v0, 1f # seccomp failed? Skip syscall
134 lw v0, PT_R2(sp) # Restore syscall (maybe modified)
141 1: j syscall_exit
143 /* ------------------------------------------------------------------------ */
146 * Our open-coded access area sanity test for the stack pointer
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
213 * these hooks for the 32-bit kernel - there is no MIPS64 MT processor