David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 1 | /* SunOS's execv() call only specifies the argv argument, the |
| 2 | * environment settings are the same as the calling processes. |
| 3 | */ |
Al Viro | eb48ffc | 2012-09-26 19:44:26 -0400 | [diff] [blame] | 4 | sys64_execve: |
| 5 | set sys_execve, %g1 |
| 6 | jmpl %g1, %g0 |
| 7 | flushw |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 8 | |
David Drysdale | 38351a3 | 2014-12-12 16:57:39 -0800 | [diff] [blame] | 9 | sys64_execveat: |
| 10 | set sys_execveat, %g1 |
| 11 | jmpl %g1, %g0 |
| 12 | flushw |
| 13 | |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 14 | #ifdef CONFIG_COMPAT |
| 15 | sunos_execv: |
Al Viro | eb48ffc | 2012-09-26 19:44:26 -0400 | [diff] [blame] | 16 | mov %g0, %o2 |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 17 | sys32_execve: |
Al Viro | eb48ffc | 2012-09-26 19:44:26 -0400 | [diff] [blame] | 18 | set compat_sys_execve, %g1 |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 19 | jmpl %g1, %g0 |
Al Viro | eb48ffc | 2012-09-26 19:44:26 -0400 | [diff] [blame] | 20 | flushw |
David Drysdale | 38351a3 | 2014-12-12 16:57:39 -0800 | [diff] [blame] | 21 | |
| 22 | sys32_execveat: |
| 23 | set compat_sys_execveat, %g1 |
| 24 | jmpl %g1, %g0 |
| 25 | flushw |
Al Viro | eb48ffc | 2012-09-26 19:44:26 -0400 | [diff] [blame] | 26 | #endif |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 27 | |
| 28 | .align 32 |
Heiko Carstens | 1134723 | 2009-01-14 14:13:56 +0100 | [diff] [blame] | 29 | sys_sparc_pipe: |
David S. Miller | e426501 | 2009-01-19 21:11:27 -0800 | [diff] [blame] | 30 | ba,pt %xcc, sys_sparc_pipe_real |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 31 | add %sp, PTREGS_OFF, %o0 |
| 32 | sys_nis_syscall: |
| 33 | ba,pt %xcc, c_sys_nis_syscall |
| 34 | add %sp, PTREGS_OFF, %o0 |
| 35 | sys_memory_ordering: |
| 36 | ba,pt %xcc, sparc_memory_ordering |
| 37 | add %sp, PTREGS_OFF, %o1 |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 38 | #ifdef CONFIG_COMPAT |
| 39 | sys32_sigstack: |
| 40 | ba,pt %xcc, do_sys32_sigstack |
| 41 | mov %i6, %o2 |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 42 | #endif |
| 43 | .align 32 |
| 44 | #ifdef CONFIG_COMPAT |
| 45 | sys32_sigreturn: |
| 46 | add %sp, PTREGS_OFF, %o0 |
| 47 | call do_sigreturn32 |
| 48 | add %o7, 1f-.-4, %o7 |
| 49 | nop |
| 50 | #endif |
| 51 | sys_rt_sigreturn: |
| 52 | add %sp, PTREGS_OFF, %o0 |
| 53 | call do_rt_sigreturn |
| 54 | add %o7, 1f-.-4, %o7 |
| 55 | nop |
| 56 | #ifdef CONFIG_COMPAT |
| 57 | sys32_rt_sigreturn: |
| 58 | add %sp, PTREGS_OFF, %o0 |
| 59 | call do_rt_sigreturn32 |
| 60 | add %o7, 1f-.-4, %o7 |
| 61 | nop |
| 62 | #endif |
| 63 | .align 32 |
| 64 | 1: ldx [%g6 + TI_FLAGS], %l5 |
Kirill Tkhai | 812cb83 | 2013-09-14 16:02:11 +0400 | [diff] [blame] | 65 | andcc %l5, (_TIF_SYSCALL_TRACE|_TIF_SECCOMP|_TIF_SYSCALL_AUDIT|_TIF_SYSCALL_TRACEPOINT|_TIF_NOHZ), %g0 |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 66 | be,pt %icc, rtrap |
| 67 | nop |
David S. Miller | fe06cca | 2008-08-24 20:10:23 -0700 | [diff] [blame] | 68 | call syscall_trace_leave |
| 69 | add %sp, PTREGS_OFF, %o0 |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 70 | ba,pt %xcc, rtrap |
| 71 | nop |
| 72 | |
| 73 | /* This is how fork() was meant to be done, 8 instruction entry. |
| 74 | * |
| 75 | * I questioned the following code briefly, let me clear things |
| 76 | * up so you must not reason on it like I did. |
| 77 | * |
| 78 | * Know the fork_kpsr etc. we use in the sparc32 port? We don't |
| 79 | * need it here because the only piece of window state we copy to |
| 80 | * the child is the CWP register. Even if the parent sleeps, |
| 81 | * we are safe because we stuck it into pt_regs of the parent |
| 82 | * so it will not change. |
| 83 | * |
| 84 | * XXX This raises the question, whether we can do the same on |
| 85 | * XXX sparc32 to get rid of fork_kpsr _and_ fork_kwim. The |
| 86 | * XXX answer is yes. We stick fork_kpsr in UREG_G0 and |
| 87 | * XXX fork_kwim in UREG_G1 (global registers are considered |
| 88 | * XXX volatile across a system call in the sparc ABI I think |
| 89 | * XXX if it isn't we can use regs->y instead, anyone who depends |
| 90 | * XXX upon the Y register being preserved across a fork deserves |
| 91 | * XXX to lose). |
| 92 | * |
| 93 | * In fact we should take advantage of that fact for other things |
| 94 | * during system calls... |
| 95 | */ |
| 96 | .align 32 |
| 97 | sys_vfork: /* Under Linux, vfork and fork are just special cases of clone. */ |
| 98 | sethi %hi(0x4000 | 0x0100 | SIGCHLD), %o0 |
| 99 | or %o0, %lo(0x4000 | 0x0100 | SIGCHLD), %o0 |
| 100 | ba,pt %xcc, sys_clone |
| 101 | sys_fork: |
| 102 | clr %o1 |
| 103 | mov SIGCHLD, %o0 |
| 104 | sys_clone: |
| 105 | flushw |
| 106 | movrz %o1, %fp, %o1 |
| 107 | mov 0, %o3 |
| 108 | ba,pt %xcc, sparc_do_fork |
| 109 | add %sp, PTREGS_OFF, %o2 |
| 110 | |
Kirill Tkhai | 37d6fa3 | 2013-07-26 16:42:39 +0400 | [diff] [blame] | 111 | .globl ret_from_fork |
| 112 | ret_from_fork: |
David S. Miller | c7d5a00 | 2010-03-03 08:08:49 -0800 | [diff] [blame] | 113 | /* Clear current_thread_info()->new_child. */ |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 114 | stb %g0, [%g6 + TI_NEW_CHILD] |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 115 | call schedule_tail |
| 116 | mov %g7, %o0 |
Al Viro | 1918c7f | 2012-10-05 22:37:01 -0400 | [diff] [blame] | 117 | ldx [%sp + PTREGS_OFF + PT_V9_I0], %o0 |
Al Viro | 2f12af3 | 2012-09-26 19:28:00 -0400 | [diff] [blame] | 118 | brnz,pt %o0, ret_sys_call |
Al Viro | 1918c7f | 2012-10-05 22:37:01 -0400 | [diff] [blame] | 119 | ldx [%g6 + TI_FLAGS], %l0 |
Al Viro | 2f12af3 | 2012-09-26 19:28:00 -0400 | [diff] [blame] | 120 | ldx [%sp + PTREGS_OFF + PT_V9_G1], %l1 |
| 121 | call %l1 |
Al Viro | 1918c7f | 2012-10-05 22:37:01 -0400 | [diff] [blame] | 122 | ldx [%sp + PTREGS_OFF + PT_V9_G2], %o0 |
David S. Miller | c7d5a00 | 2010-03-03 08:08:49 -0800 | [diff] [blame] | 123 | ba,pt %xcc, ret_sys_call |
Al Viro | 2f12af3 | 2012-09-26 19:28:00 -0400 | [diff] [blame] | 124 | mov 0, %o0 |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 125 | |
David S. Miller | de7531e | 2012-12-03 11:17:57 -0800 | [diff] [blame] | 126 | .globl sparc_exit_group |
| 127 | .type sparc_exit_group,#function |
| 128 | sparc_exit_group: |
| 129 | sethi %hi(sys_exit_group), %g7 |
| 130 | ba,pt %xcc, 1f |
| 131 | or %g7, %lo(sys_exit_group), %g7 |
| 132 | .size sparc_exit_group,.-sparc_exit_group |
| 133 | |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 134 | .globl sparc_exit |
| 135 | .type sparc_exit,#function |
| 136 | sparc_exit: |
David S. Miller | de7531e | 2012-12-03 11:17:57 -0800 | [diff] [blame] | 137 | sethi %hi(sys_exit), %g7 |
| 138 | or %g7, %lo(sys_exit), %g7 |
| 139 | 1: rdpr %pstate, %g2 |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 140 | wrpr %g2, PSTATE_IE, %pstate |
| 141 | rdpr %otherwin, %g1 |
| 142 | rdpr %cansave, %g3 |
| 143 | add %g3, %g1, %g3 |
| 144 | wrpr %g3, 0x0, %cansave |
| 145 | wrpr %g0, 0x0, %otherwin |
| 146 | wrpr %g2, 0x0, %pstate |
David S. Miller | de7531e | 2012-12-03 11:17:57 -0800 | [diff] [blame] | 147 | jmpl %g7, %g0 |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 148 | stb %g0, [%g6 + TI_WSAVED] |
| 149 | .size sparc_exit,.-sparc_exit |
| 150 | |
| 151 | linux_sparc_ni_syscall: |
| 152 | sethi %hi(sys_ni_syscall), %l7 |
| 153 | ba,pt %xcc, 4f |
| 154 | or %l7, %lo(sys_ni_syscall), %l7 |
| 155 | |
| 156 | linux_syscall_trace32: |
David S. Miller | fe06cca | 2008-08-24 20:10:23 -0700 | [diff] [blame] | 157 | call syscall_trace_enter |
| 158 | add %sp, PTREGS_OFF, %o0 |
Roland McGrath | 73ccefa | 2008-07-27 00:30:50 -0700 | [diff] [blame] | 159 | brnz,pn %o0, 3f |
| 160 | mov -ENOSYS, %o0 |
Mike Frysinger | 1a40b95 | 2016-01-18 06:32:30 -0500 | [diff] [blame] | 161 | |
| 162 | /* Syscall tracing can modify the registers. */ |
| 163 | ldx [%sp + PTREGS_OFF + PT_V9_G1], %g1 |
| 164 | sethi %hi(sys_call_table32), %l7 |
| 165 | ldx [%sp + PTREGS_OFF + PT_V9_I0], %i0 |
| 166 | or %l7, %lo(sys_call_table32), %l7 |
| 167 | ldx [%sp + PTREGS_OFF + PT_V9_I1], %i1 |
| 168 | ldx [%sp + PTREGS_OFF + PT_V9_I2], %i2 |
| 169 | ldx [%sp + PTREGS_OFF + PT_V9_I3], %i3 |
| 170 | ldx [%sp + PTREGS_OFF + PT_V9_I4], %i4 |
| 171 | ldx [%sp + PTREGS_OFF + PT_V9_I5], %i5 |
| 172 | |
| 173 | cmp %g1, NR_syscalls |
| 174 | bgeu,pn %xcc, 3f |
| 175 | mov -ENOSYS, %o0 |
| 176 | |
| 177 | sll %g1, 2, %l4 |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 178 | srl %i0, 0, %o0 |
Mike Frysinger | 1a40b95 | 2016-01-18 06:32:30 -0500 | [diff] [blame] | 179 | lduw [%l7 + %l4], %l7 |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 180 | srl %i4, 0, %o4 |
| 181 | srl %i1, 0, %o1 |
| 182 | srl %i2, 0, %o2 |
Kirill Tkhai | ab2abda | 2013-07-26 17:21:12 +0400 | [diff] [blame] | 183 | ba,pt %xcc, 5f |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 184 | srl %i3, 0, %o3 |
| 185 | |
| 186 | linux_syscall_trace: |
David S. Miller | fe06cca | 2008-08-24 20:10:23 -0700 | [diff] [blame] | 187 | call syscall_trace_enter |
| 188 | add %sp, PTREGS_OFF, %o0 |
Roland McGrath | 73ccefa | 2008-07-27 00:30:50 -0700 | [diff] [blame] | 189 | brnz,pn %o0, 3f |
| 190 | mov -ENOSYS, %o0 |
Mike Frysinger | 1a40b95 | 2016-01-18 06:32:30 -0500 | [diff] [blame] | 191 | |
| 192 | /* Syscall tracing can modify the registers. */ |
| 193 | ldx [%sp + PTREGS_OFF + PT_V9_G1], %g1 |
| 194 | sethi %hi(sys_call_table64), %l7 |
| 195 | ldx [%sp + PTREGS_OFF + PT_V9_I0], %i0 |
| 196 | or %l7, %lo(sys_call_table64), %l7 |
| 197 | ldx [%sp + PTREGS_OFF + PT_V9_I1], %i1 |
| 198 | ldx [%sp + PTREGS_OFF + PT_V9_I2], %i2 |
| 199 | ldx [%sp + PTREGS_OFF + PT_V9_I3], %i3 |
| 200 | ldx [%sp + PTREGS_OFF + PT_V9_I4], %i4 |
| 201 | ldx [%sp + PTREGS_OFF + PT_V9_I5], %i5 |
| 202 | |
| 203 | cmp %g1, NR_syscalls |
| 204 | bgeu,pn %xcc, 3f |
| 205 | mov -ENOSYS, %o0 |
| 206 | |
| 207 | sll %g1, 2, %l4 |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 208 | mov %i0, %o0 |
Mike Frysinger | 1a40b95 | 2016-01-18 06:32:30 -0500 | [diff] [blame] | 209 | lduw [%l7 + %l4], %l7 |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 210 | mov %i1, %o1 |
| 211 | mov %i2, %o2 |
| 212 | mov %i3, %o3 |
| 213 | b,pt %xcc, 2f |
| 214 | mov %i4, %o4 |
| 215 | |
| 216 | |
| 217 | /* Linux 32-bit system calls enter here... */ |
| 218 | .align 32 |
| 219 | .globl linux_sparc_syscall32 |
| 220 | linux_sparc_syscall32: |
| 221 | /* Direct access to user regs, much faster. */ |
David S. Miller | c658ad1 | 2009-12-11 00:44:47 -0800 | [diff] [blame] | 222 | cmp %g1, NR_syscalls ! IEU1 Group |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 223 | bgeu,pn %xcc, linux_sparc_ni_syscall ! CTI |
| 224 | srl %i0, 0, %o0 ! IEU0 |
| 225 | sll %g1, 2, %l4 ! IEU0 Group |
| 226 | srl %i4, 0, %o4 ! IEU1 |
| 227 | lduw [%l7 + %l4], %l7 ! Load |
| 228 | srl %i1, 0, %o1 ! IEU0 Group |
| 229 | ldx [%g6 + TI_FLAGS], %l0 ! Load |
| 230 | |
Kirill Tkhai | ab2abda | 2013-07-26 17:21:12 +0400 | [diff] [blame] | 231 | srl %i3, 0, %o3 ! IEU0 |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 232 | srl %i2, 0, %o2 ! IEU0 Group |
Kirill Tkhai | 812cb83 | 2013-09-14 16:02:11 +0400 | [diff] [blame] | 233 | andcc %l0, (_TIF_SYSCALL_TRACE|_TIF_SECCOMP|_TIF_SYSCALL_AUDIT|_TIF_SYSCALL_TRACEPOINT|_TIF_NOHZ), %g0 |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 234 | bne,pn %icc, linux_syscall_trace32 ! CTI |
| 235 | mov %i0, %l5 ! IEU1 |
Kirill Tkhai | ab2abda | 2013-07-26 17:21:12 +0400 | [diff] [blame] | 236 | 5: call %l7 ! CTI Group brk forced |
| 237 | srl %i5, 0, %o5 ! IEU1 |
Dave Kleikamp | 1535bd8 | 2014-03-14 10:42:01 -0500 | [diff] [blame] | 238 | ba,pt %xcc, 3f |
| 239 | sra %o0, 0, %o0 |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 240 | |
| 241 | /* Linux native system calls enter here... */ |
| 242 | .align 32 |
| 243 | .globl linux_sparc_syscall |
| 244 | linux_sparc_syscall: |
| 245 | /* Direct access to user regs, much faster. */ |
David S. Miller | c658ad1 | 2009-12-11 00:44:47 -0800 | [diff] [blame] | 246 | cmp %g1, NR_syscalls ! IEU1 Group |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 247 | bgeu,pn %xcc, linux_sparc_ni_syscall ! CTI |
| 248 | mov %i0, %o0 ! IEU0 |
| 249 | sll %g1, 2, %l4 ! IEU0 Group |
| 250 | mov %i1, %o1 ! IEU1 |
| 251 | lduw [%l7 + %l4], %l7 ! Load |
| 252 | 4: mov %i2, %o2 ! IEU0 Group |
| 253 | ldx [%g6 + TI_FLAGS], %l0 ! Load |
| 254 | |
| 255 | mov %i3, %o3 ! IEU1 |
| 256 | mov %i4, %o4 ! IEU0 Group |
Kirill Tkhai | 812cb83 | 2013-09-14 16:02:11 +0400 | [diff] [blame] | 257 | andcc %l0, (_TIF_SYSCALL_TRACE|_TIF_SECCOMP|_TIF_SYSCALL_AUDIT|_TIF_SYSCALL_TRACEPOINT|_TIF_NOHZ), %g0 |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 258 | bne,pn %icc, linux_syscall_trace ! CTI Group |
| 259 | mov %i0, %l5 ! IEU0 |
| 260 | 2: call %l7 ! CTI Group brk forced |
| 261 | mov %i5, %o5 ! IEU0 |
| 262 | nop |
| 263 | |
| 264 | 3: stx %o0, [%sp + PTREGS_OFF + PT_V9_I0] |
| 265 | ret_sys_call: |
| 266 | ldx [%sp + PTREGS_OFF + PT_V9_TSTATE], %g3 |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 267 | mov %ulo(TSTATE_XCARRY | TSTATE_ICARRY), %g2 |
| 268 | sllx %g2, 32, %g2 |
| 269 | |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 270 | cmp %o0, -ERESTART_RESTARTBLOCK |
| 271 | bgeu,pn %xcc, 1f |
Kirill Tkhai | 812cb83 | 2013-09-14 16:02:11 +0400 | [diff] [blame] | 272 | andcc %l0, (_TIF_SYSCALL_TRACE|_TIF_SECCOMP|_TIF_SYSCALL_AUDIT|_TIF_SYSCALL_TRACEPOINT|_TIF_NOHZ), %g0 |
Al Viro | 55c2770 | 2012-10-10 17:25:00 -0700 | [diff] [blame] | 273 | ldx [%sp + PTREGS_OFF + PT_V9_TNPC], %l1 ! pc = npc |
| 274 | |
| 275 | 2: |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 276 | /* System call success, clear Carry condition code. */ |
| 277 | andn %g3, %g2, %g3 |
Al Viro | 55c2770 | 2012-10-10 17:25:00 -0700 | [diff] [blame] | 278 | 3: |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 279 | stx %g3, [%sp + PTREGS_OFF + PT_V9_TSTATE] |
| 280 | bne,pn %icc, linux_syscall_trace2 |
| 281 | add %l1, 0x4, %l2 ! npc = npc+4 |
| 282 | stx %l1, [%sp + PTREGS_OFF + PT_V9_TPC] |
| 283 | ba,pt %xcc, rtrap |
| 284 | stx %l2, [%sp + PTREGS_OFF + PT_V9_TNPC] |
| 285 | |
| 286 | 1: |
Al Viro | 55c2770 | 2012-10-10 17:25:00 -0700 | [diff] [blame] | 287 | /* Check if force_successful_syscall_return() |
| 288 | * was invoked. |
| 289 | */ |
| 290 | ldub [%g6 + TI_SYS_NOERROR], %l2 |
| 291 | brnz,pn %l2, 2b |
| 292 | ldx [%sp + PTREGS_OFF + PT_V9_TNPC], %l1 ! pc = npc |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 293 | /* System call failure, set Carry condition code. |
| 294 | * Also, get abs(errno) to return to the process. |
| 295 | */ |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 296 | sub %g0, %o0, %o0 |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 297 | stx %o0, [%sp + PTREGS_OFF + PT_V9_I0] |
Al Viro | 55c2770 | 2012-10-10 17:25:00 -0700 | [diff] [blame] | 298 | ba,pt %xcc, 3b |
| 299 | or %g3, %g2, %g3 |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 300 | |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 301 | linux_syscall_trace2: |
David S. Miller | fe06cca | 2008-08-24 20:10:23 -0700 | [diff] [blame] | 302 | call syscall_trace_leave |
| 303 | add %sp, PTREGS_OFF, %o0 |
David S. Miller | 6eda3a7 | 2008-04-28 00:47:20 -0700 | [diff] [blame] | 304 | stx %l1, [%sp + PTREGS_OFF + PT_V9_TPC] |
| 305 | ba,pt %xcc, rtrap |
| 306 | stx %l2, [%sp + PTREGS_OFF + PT_V9_TNPC] |