1 /* Offsets and other constants needed in the *context() function
3 Copyright (C) 2005 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
24 /* Offsets of the fields in the ucontext_t structure. */
87 /* Tests run in stdlib/tst-ucontext-off. */
89 TEST (uc_link, oLINK); \
90 TEST (uc_stack.ss_sp, oSS_SP); \
91 TEST (uc_stack.ss_size, oSS_SIZE); \
92 TEST (uc_mcontext.gregs[R0], oR0); \
93 TEST (uc_mcontext.gregs[R1], oR1); \
94 TEST (uc_mcontext.gregs[R2], oR2); \
95 TEST (uc_mcontext.gregs[R3], oR3); \
96 TEST (uc_mcontext.gregs[R4], oR4); \
97 TEST (uc_mcontext.gregs[R5], oR5); \
98 TEST (uc_mcontext.gregs[R6], oR6); \
99 TEST (uc_mcontext.gregs[R7], oR7); \
100 TEST (uc_mcontext.gregs[R8], oR8); \
101 TEST (uc_mcontext.gregs[R9], oR9); \
102 TEST (uc_mcontext.gregs[R10], oR10); \
103 TEST (uc_mcontext.gregs[R11], oR11); \
104 TEST (uc_mcontext.gregs[R12], oR12); \
105 TEST (uc_mcontext.gregs[R13], oR13); \
106 TEST (uc_mcontext.gregs[R14], oR14); \
107 TEST (uc_mcontext.gregs[R15], oR15); \
108 TEST (uc_mcontext.pc, oPC); \
109 TEST (uc_mcontext.pr, oPR); \
110 TEST (uc_mcontext.sr, oSR); \
111 TEST (uc_mcontext.gbr, oGBR); \
112 TEST (uc_mcontext.mach, oMACH); \
113 TEST (uc_mcontext.macl, oMACL); \
114 TEST (uc_mcontext.fpregs[0], oFR0); \
115 TEST (uc_mcontext.fpregs[1], oFR1); \
116 TEST (uc_mcontext.fpregs[2], oFR2); \
117 TEST (uc_mcontext.fpregs[3], oFR3); \
118 TEST (uc_mcontext.fpregs[4], oFR4); \
119 TEST (uc_mcontext.fpregs[5], oFR5); \
120 TEST (uc_mcontext.fpregs[6], oFR6); \
121 TEST (uc_mcontext.fpregs[7], oFR7); \
122 TEST (uc_mcontext.fpregs[8], oFR8); \
123 TEST (uc_mcontext.fpregs[9], oFR9); \
124 TEST (uc_mcontext.fpregs[10], oFR10); \
125 TEST (uc_mcontext.fpregs[11], oFR11); \
126 TEST (uc_mcontext.fpregs[12], oFR12); \
127 TEST (uc_mcontext.fpregs[13], oFR13); \
128 TEST (uc_mcontext.fpregs[14], oFR14); \
129 TEST (uc_mcontext.fpregs[15], oFR15); \
130 TEST (uc_mcontext.xfpregs[0], oXFR0); \
131 TEST (uc_mcontext.xfpregs[1], oXFR1); \
132 TEST (uc_mcontext.xfpregs[2], oXFR2); \
133 TEST (uc_mcontext.xfpregs[3], oXFR3); \
134 TEST (uc_mcontext.xfpregs[4], oXFR4); \
135 TEST (uc_mcontext.xfpregs[5], oXFR5); \
136 TEST (uc_mcontext.xfpregs[6], oXFR6); \
137 TEST (uc_mcontext.xfpregs[7], oXFR7); \
138 TEST (uc_mcontext.xfpregs[8], oXFR8); \
139 TEST (uc_mcontext.xfpregs[9], oXFR9); \
140 TEST (uc_mcontext.xfpregs[10], oXFR10); \
141 TEST (uc_mcontext.xfpregs[11], oXFR11); \
142 TEST (uc_mcontext.xfpregs[12], oXFR12); \
143 TEST (uc_mcontext.xfpregs[13], oXFR13); \
144 TEST (uc_mcontext.xfpregs[14], oXFR14); \
145 TEST (uc_mcontext.xfpregs[15], oXFR15); \
146 TEST (uc_mcontext.fpscr, oFPSCR); \
147 TEST (uc_mcontext.fpul, oFPUL); \
148 TEST (uc_mcontext.ownedfp, oOWNEDFP); \
149 TEST (uc_sigmask, oSIGMASK);