]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/arm/__longjmp.S
Test for stack alignment.
[thirdparty/glibc.git] / sysdeps / arm / __longjmp.S
CommitLineData
7799b7b3 1/* longjmp for ARM.
31161268 2 Copyright (C) 1997, 1998 Free Software Foundation, Inc.
7799b7b3
UD
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
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.
7799b7b3
UD
9
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
41bdb6e2 13 Lesser General Public License for more details.
7799b7b3 14
41bdb6e2
AJ
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. */
7799b7b3
UD
19
20#include <sysdep.h>
cbdee279 21#define _SETJMP_H
7799b7b3 22#define _ASM
5107cf1d 23#include <bits/setjmp.h>
7799b7b3
UD
24
25/* __longjmp(jmpbuf, val) */
26
27ENTRY (__longjmp)
df777c40 28 mov ip, r0
7799b7b3 29 movs r0, r1 /* get the return value in place */
df777c40 30 moveq r0, #1 /* can't let setjmp() return zero! */
7799b7b3 31
df777c40 32 LOADREGS(ia, ip, {v1-v6, sl, fp, sp, pc})
7799b7b3 33END (__longjmp)