]>
Commit | Line | Data |
---|---|---|
5b2abdfb A |
1 | /* |
2 | * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
734aad71 | 6 | * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved. |
5b2abdfb | 7 | * |
734aad71 A |
8 | * This file contains Original Code and/or Modifications of Original Code |
9 | * as defined in and that are subject to the Apple Public Source License | |
10 | * Version 2.0 (the 'License'). You may not use this file except in | |
11 | * compliance with the License. Please obtain a copy of the License at | |
12 | * http://www.opensource.apple.com/apsl/ and read it before using this | |
13 | * file. | |
14 | * | |
15 | * The Original Code and all software distributed under the License are | |
16 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
5b2abdfb A |
17 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
18 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
734aad71 A |
19 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. |
20 | * Please see the License for the specific language governing rights and | |
21 | * limitations under the License. | |
5b2abdfb A |
22 | * |
23 | * @APPLE_LICENSE_HEADER_END@ | |
24 | */ | |
25 | /* | |
26 | * assymdefs.c -- list of symbols to #define in assym.h | |
27 | */ | |
28 | ||
29 | #import <architecture/ppc/basic_regs.h> | |
30 | #import <architecture/ppc/fp_regs.h> | |
31 | ||
32 | #define __TARGET_ARCHITECTURE__ "ppc" | |
33 | #import <signal.h> | |
34 | #import "sigcatch.h" | |
35 | ||
36 | #import "genassym.h" | |
37 | ||
38 | void | |
39 | assymdefs(void) | |
40 | { | |
41 | comment(MAJOR, "Structure Offsets"); | |
42 | ||
43 | comment(MINOR, "struct sigcontext offsets and sizes"); | |
44 | PRINT_SIZEOF(struct sigcontext); | |
45 | PRINT_OFFSET(struct sigcontext *, sc_regs_saved); | |
46 | PRINT_OFFSET(struct sigcontext *, sc_sp); | |
47 | PRINT_OFFSET(struct sigcontext *, sc_cia); | |
48 | PRINT_OFFSET(struct sigcontext *, sc_a0); | |
49 | PRINT_OFFSET(struct sigcontext *, sc_a1); | |
50 | PRINT_OFFSET(struct sigcontext *, sc_a2); | |
51 | PRINT_OFFSET(struct sigcontext *, sc_ep); | |
52 | PRINT_OFFSET(struct sigcontext *, sc_mq); | |
53 | PRINT_OFFSET(struct sigcontext *, sc_lr); | |
54 | PRINT_OFFSET(struct sigcontext *, sc_cr); | |
55 | PRINT_OFFSET(struct sigcontext *, sc_ctr); | |
56 | PRINT_OFFSET(struct sigcontext *, sc_xer); | |
57 | PRINT_OFFSET(struct sigcontext *, sc_fpscr); | |
58 | PRINT_OFFSET(struct sigcontext *, sc_zt); | |
59 | PRINT_OFFSET(struct sigcontext *, sc_a3); | |
60 | PRINT_OFFSET(struct sigcontext *, sc_a4); | |
61 | PRINT_OFFSET(struct sigcontext *, sc_a5); | |
62 | PRINT_OFFSET(struct sigcontext *, sc_a6); | |
63 | PRINT_OFFSET(struct sigcontext *, sc_a7); | |
64 | PRINT_OFFSET(struct sigcontext *, sc_at); | |
65 | PRINT_OFFSET(struct sigcontext *, sc_ft0); | |
66 | PRINT_OFFSET(struct sigcontext *, sc_fa0); | |
67 | PRINT_OFFSET(struct sigcontext *, sc_fa1); | |
68 | PRINT_OFFSET(struct sigcontext *, sc_fa2); | |
69 | PRINT_OFFSET(struct sigcontext *, sc_fa3); | |
70 | PRINT_OFFSET(struct sigcontext *, sc_fa4); | |
71 | PRINT_OFFSET(struct sigcontext *, sc_fa5); | |
72 | PRINT_OFFSET(struct sigcontext *, sc_fa6); | |
73 | PRINT_OFFSET(struct sigcontext *, sc_fa7); | |
74 | PRINT_OFFSET(struct sigcontext *, sc_fa8); | |
75 | PRINT_OFFSET(struct sigcontext *, sc_fa9); | |
76 | PRINT_OFFSET(struct sigcontext *, sc_fa10); | |
77 | PRINT_OFFSET(struct sigcontext *, sc_fa11); | |
78 | PRINT_OFFSET(struct sigcontext *, sc_fa12); | |
79 | PRINT_OFFSET(struct sigcontext *, sc_s17); | |
80 | PRINT_OFFSET(struct sigcontext *, sc_s16); | |
81 | PRINT_OFFSET(struct sigcontext *, sc_s15); | |
82 | PRINT_OFFSET(struct sigcontext *, sc_s14); | |
83 | PRINT_OFFSET(struct sigcontext *, sc_s13); | |
84 | PRINT_OFFSET(struct sigcontext *, sc_s12); | |
85 | PRINT_OFFSET(struct sigcontext *, sc_s11); | |
86 | PRINT_OFFSET(struct sigcontext *, sc_s10); | |
87 | PRINT_OFFSET(struct sigcontext *, sc_s9); | |
88 | PRINT_OFFSET(struct sigcontext *, sc_s8); | |
89 | PRINT_OFFSET(struct sigcontext *, sc_s7); | |
90 | PRINT_OFFSET(struct sigcontext *, sc_s6); | |
91 | PRINT_OFFSET(struct sigcontext *, sc_s5); | |
92 | PRINT_OFFSET(struct sigcontext *, sc_s4); | |
93 | PRINT_OFFSET(struct sigcontext *, sc_s3); | |
94 | PRINT_OFFSET(struct sigcontext *, sc_s2); | |
95 | PRINT_OFFSET(struct sigcontext *, sc_s1); | |
96 | PRINT_OFFSET(struct sigcontext *, sc_s0); | |
97 | PRINT_OFFSET(struct sigcontext *, sc_toc); | |
98 | PRINT_OFFSET(struct sigcontext *, sc_fp); | |
99 | PRINT_OFFSET(struct sigcontext *, sc_fs17); | |
100 | PRINT_OFFSET(struct sigcontext *, sc_fs16); | |
101 | PRINT_OFFSET(struct sigcontext *, sc_fs15); | |
102 | PRINT_OFFSET(struct sigcontext *, sc_fs14); | |
103 | PRINT_OFFSET(struct sigcontext *, sc_fs13); | |
104 | PRINT_OFFSET(struct sigcontext *, sc_fs12); | |
105 | PRINT_OFFSET(struct sigcontext *, sc_fs11); | |
106 | PRINT_OFFSET(struct sigcontext *, sc_fs10); | |
107 | PRINT_OFFSET(struct sigcontext *, sc_fs9); | |
108 | PRINT_OFFSET(struct sigcontext *, sc_fs8); | |
109 | PRINT_OFFSET(struct sigcontext *, sc_fs7); | |
110 | PRINT_OFFSET(struct sigcontext *, sc_fs6); | |
111 | PRINT_OFFSET(struct sigcontext *, sc_fs5); | |
112 | PRINT_OFFSET(struct sigcontext *, sc_fs4); | |
113 | PRINT_OFFSET(struct sigcontext *, sc_fs3); | |
114 | PRINT_OFFSET(struct sigcontext *, sc_fs2); | |
115 | PRINT_OFFSET(struct sigcontext *, sc_fs1); | |
116 | PRINT_OFFSET(struct sigcontext *, sc_fs0); | |
117 | PRINT_ENUM(REGS_SAVED_NONE); | |
118 | PRINT_ENUM(REGS_SAVED_CALLER); | |
119 | PRINT_ENUM(REGS_SAVED_ALL); | |
120 | ||
121 | comment(MINOR, "struct sigstack offsets and sizes"); | |
122 | PRINT_SIZEOF(struct sigstack); | |
123 | PRINT_OFFSET(struct sigstack *, ss_sp); | |
124 | PRINT_OFFSET(struct sigstack *, ss_onstack); | |
125 | ||
126 | comment(MINOR, "sigcatch_t offsets"); | |
127 | PRINT_SIZEOF(sigcatch_t); | |
128 | PRINT_OFFSET(sigcatch_t *, handler); | |
129 | // PRINT_OFFSET(sigcatch_t *, flags); | |
130 | PRINT_CONSTANT(SV_SAVE_REGS); | |
131 | } |