1 /* longjmp for Nios II.
2 Copyright (C) 2015-2017 Free Software Foundation, Inc.
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 License as
7 published by the Free Software Foundation; either version 2.1 of the
8 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, see
17 <http://www.gnu.org/licenses/>. */
20 #include <jmpbuf-offsets.h>
22 /* __longjmp(jmpbuf, val) */
33 PTR_DEMANGLE (r5, r5, r3)
34 PTR_DEMANGLE (r6, r6, r3)
38 cfi_offset (r16, JB_R16*4)
39 cfi_offset (r17, JB_R17*4)
40 cfi_offset (r18, JB_R18*4)
41 cfi_offset (r19, JB_R19*4)
42 cfi_offset (r20, JB_R20*4)
43 cfi_offset (r21, JB_R21*4)
44 cfi_offset (r22, JB_R22*4)
45 cfi_offset (fp, JB_FP*4)
50 cfi_offset (ra, JB_RA*4)
51 cfi_offset (sp, JB_SP*4)
53 ldw r16, (JB_R16*4)(r4)
54 ldw r17, (JB_R17*4)(r4)
55 ldw r18, (JB_R18*4)(r4)
56 ldw r19, (JB_R19*4)(r4)
57 ldw r20, (JB_R20*4)(r4)
58 ldw r21, (JB_R21*4)(r4)
59 ldw r22, (JB_R22*4)(r4)