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