(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
[glibc.git] / sysdeps / s390 / s390-64 / setjmp.S
blob7f245c2a1d4b6924508dc6622dfb91c7dfc7f9a5
1 /* Copyright (C) 2001 Free Software Foundation, Inc.
2    Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
3    This file is part of the GNU C Library.
5    The GNU C Library is free software; you can redistribute it and/or
6    modify it under the terms of the GNU Lesser General Public
7    License as published by the Free Software Foundation; either
8    version 2.1 of the License, or (at your option) any later version.
10    The GNU C Library is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13    Lesser General Public License for more details.
15    You should have received a copy of the GNU Lesser General Public
16    License along with the GNU C Library; if not, write to the Free
17    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18    02111-1307 USA.  */
20 #ifndef _ASM
21 #define _ASM
22 #endif
24 #include <sysdep.h>
25 #include <bits/setjmp.h>
27 /* Save the current program position in ENV and return 0.  */
28 /* R2 = pointer to jmp_buf, R3 = savemask.  */
30 ENTRY(__sigsetjmp)
31         stmg   %r6,%r15,0(%r2)      /* Store registers in jmp_buf.  */
32         std    %f1,80(%r2)
33         std    %f3,88(%r2)
34         std    %f5,96(%r2)
35         std    %f7,104(%r2)
36 #ifdef PIC
37         jg     __sigjmp_save@PLT    /* Tail-call __sigjmp_save.  */
38 #else
39         jg     __sigjmp_save        /* Tail-call __sigjmp_save.  */
40 #endif
41 END (__sigsetjmp)