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