Lines Matching +full:1 +full:- +full:v0
6 * Copyright (C) 1995-99, 2000- 02, 06 Ralf Baechle <ralf@linux-mips.org>
23 #include <asm/asm-offsets.h>
54 bltz t5, bad_stack # -> sp is bad
86 bnez t0, syscall_trace_entry # -> yes
88 subu v0, v0, __NR_O32_Linux # check syscall number
89 sltiu t0, v0, __NR_O32_Linux_syscalls
92 sll t0, v0, 2
101 li t0, -EMAXERRNO - 1 # error?
102 sltu t0, t0, v0
104 beqz t0, 1f
107 negu v0 # error
109 1: sw v0, PT_R2(sp) # result
114 /* ------------------------------------------------------------------------ */
121 * syscall number is in v0 unless we called syscall(__NR_###)
124 move a1, v0
125 subu t2, v0, __NR_O32_Linux
126 bnez t2, 1f /* __NR_syscall at offset 0 */
129 1: jal syscall_trace_enter
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