(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
[glibc.git] / sysdeps / unix / sysv / linux / powerpc / powerpc64 / ucontext_i.h
blob45f1bfdae999982702adc51aec39ddca49922812
1 /* Offsets and other constants needed in the *context() function
2 implementation.
3 Copyright (C) 2002 Free Software Foundation, Inc.
4 This file is part of the GNU C Library.
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, write to the Free
18 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 02111-1307 USA. */
21 #define SIG_BLOCK 0
22 #define SIG_SETMASK 2
24 /* Offsets of the fields in the powerpc64 ABI stack frame. */
26 #define FRAME_BACKCHAIN 0
27 #define FRAME_CR_SAVE 8
28 #define FRAME_LR_SAVE 16
29 #define FRAME_COMPILER_DW 24
30 #define FRAME_LINKER_DW 32
31 #define FRAME_TOC_SAVE 40
32 #define FRAME_PARM_SAVE 48
33 #define FRAME_PARM1_SAVE 48
34 #define FRAME_PARM2_SAVE 56
35 #define FRAME_PARM3_SAVE 64
36 #define FRAME_PARM4_SAVE 72
37 #define FRAME_PARM5_SAVE 80
38 #define FRAME_PARM6_SAVE 88
39 #define FRAME_PARM7_SAVE 96
40 #define FRAME_PARM8_SAVE 104
41 #define FRAME_PARM9_SAVE 112
44 /* Offsets of the fields in the ucontext_t structure. */
46 #define UCONTEXT_LINK 8
47 #define UCONTEXT_STACK 16
48 #define UCONTEXT_STACK_SP 16
49 #define UCONTEXT_STACK_FLAGS 24
50 #define UCONTEXT_STACK_SIZE 32
51 #define UCONTEXT_SIGMASK 40
52 #define UCONTEXT_MCONTEXT 168
53 #define SIGCONTEXT_SIGNAL 200
54 #define SIGCONTEXT_HANDLER 208
55 #define SIGCONTEXT_OLDMASK 216
56 #define SIGCONTEXT_PT_REGS 224
57 #define SIGCONTEXT_GP_REGS 232
58 #define SIGCONTEXT_FP_REGS 616
59 #define SIGCONTEXT_V_REGS_PTR 880
60 #define SIGCONTEXT_V_RESERVE 888