diff options
Diffstat (limited to 'arch/sparc64/kernel/syscalls.S')
-rw-r--r-- | arch/sparc64/kernel/syscalls.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/syscalls.S b/arch/sparc64/kernel/syscalls.S index db19ed67acf6..a2f24270ed8a 100644 --- a/arch/sparc64/kernel/syscalls.S +++ b/arch/sparc64/kernel/syscalls.S | |||
@@ -162,6 +162,8 @@ linux_syscall_trace32: | |||
162 | add %sp, PTREGS_OFF, %o0 | 162 | add %sp, PTREGS_OFF, %o0 |
163 | call syscall_trace | 163 | call syscall_trace |
164 | clr %o1 | 164 | clr %o1 |
165 | brnz,pn %o0, 3f | ||
166 | mov -ENOSYS, %o0 | ||
165 | srl %i0, 0, %o0 | 167 | srl %i0, 0, %o0 |
166 | srl %i4, 0, %o4 | 168 | srl %i4, 0, %o4 |
167 | srl %i1, 0, %o1 | 169 | srl %i1, 0, %o1 |
@@ -173,6 +175,8 @@ linux_syscall_trace: | |||
173 | add %sp, PTREGS_OFF, %o0 | 175 | add %sp, PTREGS_OFF, %o0 |
174 | call syscall_trace | 176 | call syscall_trace |
175 | clr %o1 | 177 | clr %o1 |
178 | brnz,pn %o0, 3f | ||
179 | mov -ENOSYS, %o0 | ||
176 | mov %i0, %o0 | 180 | mov %i0, %o0 |
177 | mov %i1, %o1 | 181 | mov %i1, %o1 |
178 | mov %i2, %o2 | 182 | mov %i2, %o2 |