]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/tile/jmpbuf-offsets.h
Move tilegx, tilepro, and linux-generic from ports to libc.
[thirdparty/glibc.git] / sysdeps / tile / jmpbuf-offsets.h
CommitLineData
d4697bc9 1/* Copyright (C) 2011-2014 Free Software Foundation, Inc.
63d143a2
CM
2 This file is part of the GNU C Library.
3 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
4
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.
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
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
ab84e3ff
PE
16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
63d143a2
CM
18
19/* We don't use most of these symbols; they are here for documentation. */
20#define JB_R30 0
21#define JB_R31 1
22#define JB_R32 2
23#define JB_R33 3
24#define JB_R34 4
25#define JB_R35 5
26#define JB_R36 6
27#define JB_R37 7
28#define JB_R38 8
29#define JB_R39 9
30#define JB_R40 10
31#define JB_R41 11
32#define JB_R42 12
33#define JB_R43 13
34#define JB_R44 14
35#define JB_R45 15
36#define JB_R46 16
37#define JB_R47 17
38#define JB_R48 18
39#define JB_R49 19
40#define JB_R50 20
41#define JB_R51 21
42#define JB_FP 22 /* r52 */
43#define JB_TP 23 /* r53 */
44#define JB_SP 24 /* r54 */
45#define JB_PC 25 /* normally LR, r55 */
46#define JB_ICS 26 /* interrupt critical section bit */
47
c0c3f78a 48/* We save space for some extra state to accommodate future changes. */
63d143a2
CM
49#define JB_LEN 32 /* number of words */
50
51#define JB_SIZE (JB_LEN * REGSIZE)
52
53/* Helper macro used by all the setjmp/longjmp assembly code. */
54#define FOR_EACH_CALLEE_SAVED_REG(f) \
55 .no_require_canonical_reg_names; f(r30); f(r31); \
56 f(r32); f(r33); f(r34); f(r35); f(r36); f(r37); f(r38); f(r39); \
57 f(r40); f(r41); f(r42); f(r43); f(r44); f(r45); f(r46); f(r47); \
58 f(r48); f(r49); f(r50); f(r51); f(r52); f(r53); f(r54); f(r55)
59
60/* Helper for generic ____longjmp_chk(). */
61#define JB_FRAME_ADDRESS(buf) \
62 ((void *) (unsigned long) (buf[JB_SP]))