diff options
Diffstat (limited to 'arch/sparc64/kernel/entry.S')
-rw-r--r-- | arch/sparc64/kernel/entry.S | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/arch/sparc64/kernel/entry.S b/arch/sparc64/kernel/entry.S index acc323eef535..8b7ed760c50e 100644 --- a/arch/sparc64/kernel/entry.S +++ b/arch/sparc64/kernel/entry.S | |||
@@ -1555,8 +1555,9 @@ sys_ptrace: add %sp, PTREGS_OFF, %o0 | |||
1555 | andcc %l5, (_TIF_SYSCALL_TRACE|_TIF_SECCOMP), %g0 | 1555 | andcc %l5, (_TIF_SYSCALL_TRACE|_TIF_SECCOMP), %g0 |
1556 | be,pt %icc, rtrap | 1556 | be,pt %icc, rtrap |
1557 | clr %l6 | 1557 | clr %l6 |
1558 | add %sp, PTREGS_OFF, %o0 | ||
1558 | call syscall_trace | 1559 | call syscall_trace |
1559 | nop | 1560 | mov 1, %o1 |
1560 | 1561 | ||
1561 | ba,pt %xcc, rtrap | 1562 | ba,pt %xcc, rtrap |
1562 | clr %l6 | 1563 | clr %l6 |
@@ -1640,18 +1641,20 @@ linux_sparc_ni_syscall: | |||
1640 | or %l7, %lo(sys_ni_syscall), %l7 | 1641 | or %l7, %lo(sys_ni_syscall), %l7 |
1641 | 1642 | ||
1642 | linux_syscall_trace32: | 1643 | linux_syscall_trace32: |
1644 | add %sp, PTREGS_OFF, %o0 | ||
1643 | call syscall_trace | 1645 | call syscall_trace |
1644 | nop | 1646 | clr %o1 |
1645 | srl %i0, 0, %o0 | 1647 | srl %i0, 0, %o0 |
1646 | mov %i4, %o4 | 1648 | srl %i4, 0, %o4 |
1647 | srl %i1, 0, %o1 | 1649 | srl %i1, 0, %o1 |
1648 | srl %i2, 0, %o2 | 1650 | srl %i2, 0, %o2 |
1649 | b,pt %xcc, 2f | 1651 | b,pt %xcc, 2f |
1650 | srl %i3, 0, %o3 | 1652 | srl %i3, 0, %o3 |
1651 | 1653 | ||
1652 | linux_syscall_trace: | 1654 | linux_syscall_trace: |
1655 | add %sp, PTREGS_OFF, %o0 | ||
1653 | call syscall_trace | 1656 | call syscall_trace |
1654 | nop | 1657 | clr %o1 |
1655 | mov %i0, %o0 | 1658 | mov %i0, %o0 |
1656 | mov %i1, %o1 | 1659 | mov %i1, %o1 |
1657 | mov %i2, %o2 | 1660 | mov %i2, %o2 |
@@ -1755,8 +1758,9 @@ ret_sys_call: | |||
1755 | b,pt %xcc, rtrap | 1758 | b,pt %xcc, rtrap |
1756 | stx %l2, [%sp + PTREGS_OFF + PT_V9_TNPC] | 1759 | stx %l2, [%sp + PTREGS_OFF + PT_V9_TNPC] |
1757 | linux_syscall_trace2: | 1760 | linux_syscall_trace2: |
1761 | add %sp, PTREGS_OFF, %o0 | ||
1758 | call syscall_trace | 1762 | call syscall_trace |
1759 | nop | 1763 | mov 1, %o1 |
1760 | stx %l1, [%sp + PTREGS_OFF + PT_V9_TPC] | 1764 | stx %l1, [%sp + PTREGS_OFF + PT_V9_TPC] |
1761 | ba,pt %xcc, rtrap | 1765 | ba,pt %xcc, rtrap |
1762 | stx %l2, [%sp + PTREGS_OFF + PT_V9_TNPC] | 1766 | stx %l2, [%sp + PTREGS_OFF + PT_V9_TNPC] |