]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/mips/mips64/setjmp.S
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sysdeps / mips / mips64 / setjmp.S
CommitLineData
f7a9f785 1/* Copyright (C) 1996-2016 Free Software Foundation, Inc.
d0c2d3b3
UD
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
3214b89b
AJ
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
d0c2d3b3
UD
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3214b89b 12 Lesser General Public License for more details.
d0c2d3b3 13
3214b89b 14 You should have received a copy of the GNU Lesser General Public
ab84e3ff
PE
15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
d0c2d3b3 17
b8ddf7a1 18#include <sgidefs.h>
d0c2d3b3 19#include <sysdep.h>
ca2b264c 20#include <sys/asm.h>
d0c2d3b3
UD
21
22/* The function __sigsetjmp_aux saves all the registers, but it can't
23 reliably access the stack or frame pointers, so we pass them in as
24 extra arguments. */
5494bc3a 25#ifdef __PIC__
d0c2d3b3
UD
26 .option pic2
27#endif
28ENTRY (__sigsetjmp)
5494bc3a 29#ifdef __PIC__
ca2b264c 30 SETUP_GP
d0c2d3b3 31#endif
aea7a9b9 32 SETUP_GP64_REG (v0, C_SYMBOL_NAME (__sigsetjmp))
d0c2d3b3
UD
33 move a2, sp
34 move a3, fp
ca2b264c 35 PTR_LA t9, __sigsetjmp_aux
b8ddf7a1 36#if _MIPS_SIM == _ABIO32
d0c2d3b3 37 nop
5556231d 38#endif
aea7a9b9 39 RESTORE_GP64_REG
b8ddf7a1 40#if _MIPS_SIM != _ABIO32
19ca28fb
AO
41 move a4, gp
42#endif
d0c2d3b3 43 jr t9
a6ee1783 44END (__sigsetjmp)