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
83 bnez t0, syscall_trace_entry # -> yes
85 subu v0, v0, __NR_O32_Linux # check syscall number
86 sltiu t0, v0, __NR_O32_Linux_syscalls
89 sll t0, v0, 2
98 li t0, -EMAXERRNO - 1 # error?
99 sltu t0, t0, v0
101 beqz t0, 1f
104 negu v0 # error
106 1: sw v0, PT_R2(sp) # result
111 /* ------------------------------------------------------------------------ */
118 * syscall number is in v0 unless we called syscall(__NR_###)
121 move a1, v0
122 subu t2, v0, __NR_O32_Linux
123 bnez t2, 1f /* __NR_syscall at offset 0 */
126 1: jal syscall_trace_enter
128 bltz v0, 1f # seccomp failed? Skip syscall
131 lw v0, PT_R2(sp) # Restore syscall (maybe modified)
138 1: j syscall_exit
140 /* ------------------------------------------------------------------------ */
143 * Our open-coded access area sanity test for the stack pointer
147 li v0, EFAULT
148 sw v0, PT_R2(sp)
149 li t0, 1 # set error flag
173 li v0, ENOSYS # error
174 sw v0, PT_R2(sp)
175 li t0, 1 # set error flag
182 sltiu v0, t0, __NR_O32_Linux_syscalls
185 beqz v0, einval
201 einval: li v0, -ENOSYS
210 * these hooks for the 32-bit kernel - there is no MIPS64 MT processor