]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / s390 / s390-64 / setcontext.S
index 268f36e713fc4db9eabb873e7098d922f6184be9..ea1ec069bc104d4760d0b27d12b4997ec4cdcab2 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001 Free Software Foundation, Inc.
+/* Copyright (C) 2001-2016 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
 
@@ -13,9 +13,8 @@
    Lesser General Public License for more details.
 
    You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
+   License along with the GNU C Library; if not, see
+   <http://www.gnu.org/licenses/>.  */
 
 #include <sysdep.h>
 #include <features.h>
   other than the PRESERVED state.  */
 
 ENTRY(__setcontext)
-       lgr     %r5,%r2
+       lgr     %r1,%r2
 
        /* sigprocmask (SIG_SETMASK, &sc->sc_mask, NULL).  */
-       la      %r2,SIG_BLOCK
-       la      %r3,SC_MASK(%r5)
+       la      %r2,SIG_SETMASK
+       la      %r3,SC_MASK(%r1)
        slgr    %r4,%r4
+       lghi    %r5,_NSIG8
        svc     SYS_ify(rt_sigprocmask)
 
        /* Load fpu context.  */
-       lfpc    SC_FPC(%r5)
-       ld      %f0,SC_FPRS(%r5)
-       ld      %f1,SC_FPRS+8(%r5)
-       ld      %f2,SC_FPRS+16(%r5)
-       ld      %f3,SC_FPRS+24(%r5)
-       ld      %f4,SC_FPRS+32(%r5)
-       ld      %f5,SC_FPRS+40(%r5)
-       ld      %f6,SC_FPRS+48(%r5)
-       ld      %f7,SC_FPRS+56(%r5)
-       ld      %f8,SC_FPRS+64(%r5)
-       ld      %f9,SC_FPRS+72(%r5)
-       ld      %f10,SC_FPRS+80(%r5)
-       ld      %f11,SC_FPRS+88(%r5)
-       ld      %f12,SC_FPRS+96(%r5)
-       ld      %f13,SC_FPRS+104(%r5)
-       ld      %f14,SC_FPRS+112(%r5)
-       ld      %f15,SC_FPRS+120(%r5)
+       lfpc    SC_FPC(%r1)
+       ld      %f0,SC_FPRS(%r1)
+       ld      %f1,SC_FPRS+8(%r1)
+       ld      %f2,SC_FPRS+16(%r1)
+       ld      %f3,SC_FPRS+24(%r1)
+       ld      %f4,SC_FPRS+32(%r1)
+       ld      %f5,SC_FPRS+40(%r1)
+       ld      %f6,SC_FPRS+48(%r1)
+       ld      %f7,SC_FPRS+56(%r1)
+       ld      %f8,SC_FPRS+64(%r1)
+       ld      %f9,SC_FPRS+72(%r1)
+       ld      %f10,SC_FPRS+80(%r1)
+       ld      %f11,SC_FPRS+88(%r1)
+       ld      %f12,SC_FPRS+96(%r1)
+       ld      %f13,SC_FPRS+104(%r1)
+       ld      %f14,SC_FPRS+112(%r1)
+       ld      %f15,SC_FPRS+120(%r1)
 
        /* Don't touch %a0 and %a1, used for thread purposes.  */
-       lam     %a2,%a15,SC_ACRS+8(%r5)
+       lam     %a2,%a15,SC_ACRS+8(%r1)
+
        /* Load general purpose registers.  */
-       lmg     %r0,%r15,SC_GPRS(%r5)
+       lmg     %r0,%r15,SC_GPRS(%r1)
 
        /* Return.  */
        br      %r14
 END(__setcontext)
 
-weak_alias(__setcontext, setcontext)
+weak_alias (__setcontext, setcontext)