]>
Commit | Line | Data |
---|---|---|
1c79356b | 1 | /* |
55e303ae | 2 | * Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved. |
1c79356b A |
3 | * |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
e5568f75 A |
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. | |
1c79356b | 11 | * |
e5568f75 A |
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 | |
1c79356b A |
14 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
15 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
e5568f75 A |
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. | |
1c79356b A |
19 | * |
20 | * @APPLE_LICENSE_HEADER_END@ | |
21 | */ | |
22 | /* | |
23 | * @OSF_COPYRIGHT@ | |
24 | * | |
25 | */ | |
26 | ||
27 | /* | |
28 | * genassym.c is used to produce an | |
29 | * assembly file which, intermingled with unuseful assembly code, | |
30 | * has all the necessary definitions emitted. This assembly file is | |
31 | * then postprocessed with sed to extract only these definitions | |
32 | * and thus the final assyms.s is created. | |
33 | * | |
34 | * This convoluted means is necessary since the structure alignment | |
35 | * and packing may be different between the host machine and the | |
36 | * target so we are forced into using the cross compiler to generate | |
37 | * the values, but we cannot run anything on the target machine. | |
38 | */ | |
39 | ||
40 | #include <cpus.h> | |
41 | #include <va_list.h> | |
42 | #include <types.h> | |
43 | ||
44 | #include <kern/task.h> | |
45 | #include <kern/thread.h> | |
46 | #include <kern/thread_act.h> | |
47 | #include <kern/host.h> | |
48 | #include <kern/lock.h> | |
49 | #include <kern/processor.h> | |
55e303ae | 50 | #include <kern/syscall_sw.h> |
1c79356b A |
51 | #include <ppc/exception.h> |
52 | #include <ppc/thread_act.h> | |
53 | #include <ppc/misc_protos.h> | |
54 | #include <kern/syscall_sw.h> | |
55 | #include <kern/ast.h> | |
56 | #include <ppc/low_trace.h> | |
57 | #include <ppc/PseudoKernel.h> | |
58 | #include <ppc/mappings.h> | |
59 | #include <ppc/Firmware.h> | |
60 | #include <ppc/low_trace.h> | |
61 | #include <vm/vm_map.h> | |
62 | #include <vm/pmap.h> | |
63 | #include <ppc/pmap.h> | |
1c79356b | 64 | #include <ppc/Diagnostics.h> |
1c79356b A |
65 | #include <pexpert/pexpert.h> |
66 | #include <mach/machine.h> | |
67 | #include <ppc/vmachmon.h> | |
55e303ae | 68 | #include <ppc/hw_perfmon.h> |
1c79356b | 69 | #include <ppc/PPCcalls.h> |
d52fe63f | 70 | #include <ppc/mem.h> |
55e303ae A |
71 | #include <ppc/boot.h> |
72 | #include <ppc/lowglobals.h> | |
1c79356b A |
73 | |
74 | #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE)0)->MEMBER) | |
75 | ||
76 | #define DECLARE(SYM,VAL) \ | |
77 | __asm("#DEFINITION##define\t" SYM "\t%0" : : "n" ((u_int)(VAL))) | |
78 | ||
79 | int main(int argc, char *argv[]) | |
80 | { | |
81 | /* Process Control Block */ | |
55e303ae A |
82 | DECLARE("ACT_MACT_KSP", offsetof(thread_act_t, mact.ksp)); |
83 | DECLARE("ACT_MACT_BEDA", offsetof(thread_act_t, mact.bbDescAddr)); | |
84 | DECLARE("ACT_MACT_BTS", offsetof(thread_act_t, mact.bbTableStart)); | |
85 | DECLARE("ACT_MACT_BTE", offsetof(thread_act_t, mact.bbTaskEnv)); | |
86 | DECLARE("ACT_MACT_SPF", offsetof(thread_act_t, mact.specFlags)); | |
87 | DECLARE("ACT_PREEMPT_CNT", offsetof(thread_act_t, mact.preemption_count)); | |
88 | DECLARE("qactTimer", offsetof(thread_act_t, mact.qactTimer)); | |
89 | DECLARE("cioSpace", offsetof(thread_act_t, mact.cioSpace)); | |
90 | DECLARE("cioRelo", offsetof(thread_act_t, mact.cioRelo)); | |
91 | DECLARE("cioSwitchAway", cioSwitchAway); | |
92 | DECLARE("cioSwitchAwayb", cioSwitchAwayb); | |
93 | DECLARE("bbTrap", offsetof(thread_act_t, mact.bbTrap)); | |
94 | DECLARE("bbSysCall", offsetof(thread_act_t, mact.bbSysCall)); | |
95 | DECLARE("bbInterrupt", offsetof(thread_act_t, mact.bbInterrupt)); | |
96 | DECLARE("bbPending", offsetof(thread_act_t, mact.bbPending)); | |
9bccf70c | 97 | |
1c79356b A |
98 | DECLARE("floatUsed", floatUsed); |
99 | DECLARE("vectorUsed", vectorUsed); | |
1c79356b | 100 | DECLARE("runningVM", runningVM); |
9bccf70c | 101 | DECLARE("runningVMbit", runningVMbit); |
1c79356b | 102 | DECLARE("floatCng", floatCng); |
1c79356b | 103 | DECLARE("floatCngbit", floatCngbit); |
9bccf70c | 104 | DECLARE("vectorCng", vectorCng); |
1c79356b | 105 | DECLARE("vectorCngbit", vectorCngbit); |
9bccf70c A |
106 | DECLARE("userProtKey", userProtKey); |
107 | DECLARE("userProtKeybit", userProtKeybit); | |
9bccf70c | 108 | |
0b4e3aa0 | 109 | DECLARE("bbThread", bbThread); |
9bccf70c | 110 | DECLARE("bbThreadbit", bbThreadbit); |
55e303ae | 111 | DECLARE("bbNoMachSC", bbNoMachSC); |
9bccf70c | 112 | DECLARE("bbNoMachSCbit",bbNoMachSCbit); |
0b4e3aa0 | 113 | DECLARE("bbPreemptive", bbPreemptive); |
9bccf70c A |
114 | DECLARE("bbPreemptivebit", bbPreemptivebit); |
115 | ||
0b4e3aa0 A |
116 | DECLARE("fvChkb", fvChkb); |
117 | DECLARE("fvChk", fvChk); | |
d7e50217 A |
118 | DECLARE("FamVMena", FamVMena); |
119 | DECLARE("FamVMenabit", FamVMenabit); | |
120 | DECLARE("FamVMmode", FamVMmode); | |
121 | DECLARE("FamVMmodebit", FamVMmodebit); | |
55e303ae A |
122 | DECLARE("perfMonitor", perfMonitor); |
123 | DECLARE("perfMonitorbit", perfMonitorbit); | |
ab86ba33 A |
124 | DECLARE("OnProc", OnProc); |
125 | DECLARE("OnProcbit", OnProcbit); | |
1c79356b A |
126 | |
127 | /* Per Proc info structure */ | |
128 | DECLARE("PP_CPU_NUMBER", offsetof(struct per_proc_info *, cpu_number)); | |
129 | DECLARE("PP_CPU_FLAGS", offsetof(struct per_proc_info *, cpu_flags)); | |
55e303ae | 130 | DECLARE("SleepState", SleepState); |
1c79356b A |
131 | DECLARE("PP_ISTACKPTR", offsetof(struct per_proc_info *, istackptr)); |
132 | DECLARE("PP_INTSTACK_TOP_SS", offsetof(struct per_proc_info *, intstack_top_ss)); | |
1c79356b A |
133 | DECLARE("PP_DEBSTACKPTR", offsetof(struct per_proc_info *, debstackptr)); |
134 | DECLARE("PP_DEBSTACK_TOP_SS", offsetof(struct per_proc_info *, debstack_top_ss)); | |
9bccf70c A |
135 | DECLARE("FPUowner", offsetof(struct per_proc_info *, FPU_owner)); |
136 | DECLARE("VMXowner", offsetof(struct per_proc_info *, VMX_owner)); | |
55e303ae | 137 | DECLARE("holdQFret", offsetof(struct per_proc_info *, holdQFret)); |
1c79356b | 138 | |
de355530 | 139 | DECLARE("PP_SAVE_EXCEPTION_TYPE", offsetof(struct per_proc_info *, save_exception_type)); |
1c79356b | 140 | DECLARE("PP_NEED_AST", offsetof(struct per_proc_info *, need_ast)); |
9bccf70c A |
141 | DECLARE("quickfret", offsetof(struct per_proc_info *, quickfret)); |
142 | DECLARE("lclfree", offsetof(struct per_proc_info *, lclfree)); | |
143 | DECLARE("lclfreecnt", offsetof(struct per_proc_info *, lclfreecnt)); | |
0b4e3aa0 | 144 | DECLARE("PP_INTS_ENABLED", offsetof(struct per_proc_info *, interrupts_enabled)); |
1c79356b | 145 | DECLARE("UAW", offsetof(struct per_proc_info *, Uassist)); |
d7e50217 | 146 | DECLARE("next_savearea", offsetof(struct per_proc_info *, next_savearea)); |
55e303ae | 147 | DECLARE("PP_CPU_DATA", offsetof(struct per_proc_info *, pp_cpu_data)); |
9bccf70c A |
148 | DECLARE("PP_SIMPLE_LOCK_CNT", offsetof(struct per_proc_info *, pp_simple_lock_count)); |
149 | DECLARE("PP_INTERRUPT_LVL", offsetof(struct per_proc_info *, pp_interrupt_level)); | |
0b4e3aa0 | 150 | DECLARE("ppbbTaskEnv", offsetof(struct per_proc_info *, ppbbTaskEnv)); |
1c79356b | 151 | DECLARE("liveVRS", offsetof(struct per_proc_info *, liveVRSave)); |
1c79356b A |
152 | DECLARE("spcFlags", offsetof(struct per_proc_info *, spcFlags)); |
153 | DECLARE("spcTRc", offsetof(struct per_proc_info *, spcTRc)); | |
154 | DECLARE("spcTRp", offsetof(struct per_proc_info *, spcTRp)); | |
155 | DECLARE("ruptStamp", offsetof(struct per_proc_info *, ruptStamp)); | |
156 | DECLARE("pfAvailable", offsetof(struct per_proc_info *, pf.Available)); | |
157 | DECLARE("pfFloat", pfFloat); | |
158 | DECLARE("pfFloatb", pfFloatb); | |
159 | DECLARE("pfAltivec", pfAltivec); | |
160 | DECLARE("pfAltivecb", pfAltivecb); | |
161 | DECLARE("pfAvJava", pfAvJava); | |
162 | DECLARE("pfAvJavab", pfAvJavab); | |
163 | DECLARE("pfSMPcap", pfSMPcap); | |
164 | DECLARE("pfSMPcapb", pfSMPcapb); | |
165 | DECLARE("pfCanSleep", pfCanSleep); | |
166 | DECLARE("pfCanSleepb", pfCanSleepb); | |
167 | DECLARE("pfCanNap", pfCanNap); | |
168 | DECLARE("pfCanNapb", pfCanNapb); | |
169 | DECLARE("pfCanDoze", pfCanDoze); | |
170 | DECLARE("pfCanDozeb", pfCanDozeb); | |
1c79356b A |
171 | DECLARE("pfThermal", pfThermal); |
172 | DECLARE("pfThermalb", pfThermalb); | |
173 | DECLARE("pfThermInt", pfThermInt); | |
174 | DECLARE("pfThermIntb", pfThermIntb); | |
d52fe63f A |
175 | DECLARE("pfSlowNap", pfSlowNap); |
176 | DECLARE("pfSlowNapb", pfSlowNapb); | |
177 | DECLARE("pfNoMuMMCK", pfNoMuMMCK); | |
178 | DECLARE("pfNoMuMMCKb", pfNoMuMMCKb); | |
55e303ae A |
179 | DECLARE("pfNoL2PFNap", pfNoL2PFNap); |
180 | DECLARE("pfNoL2PFNapb", pfNoL2PFNapb); | |
181 | DECLARE("pfSCOMFixUp", pfSCOMFixUp); | |
182 | DECLARE("pfSCOMFixUpb", pfSCOMFixUpb); | |
183 | DECLARE("pfHasDcba", pfHasDcba); | |
184 | DECLARE("pfHasDcbab", pfHasDcbab); | |
1c79356b A |
185 | DECLARE("pfL1fa", pfL1fa); |
186 | DECLARE("pfL1fab", pfL1fab); | |
187 | DECLARE("pfL2", pfL2); | |
188 | DECLARE("pfL2b", pfL2b); | |
189 | DECLARE("pfL2fa", pfL2fa); | |
190 | DECLARE("pfL2fab", pfL2fab); | |
191 | DECLARE("pfL2i", pfL2i); | |
192 | DECLARE("pfL2ib", pfL2ib); | |
55e303ae A |
193 | DECLARE("pfLClck", pfLClck); |
194 | DECLARE("pfLClckb", pfLClckb); | |
195 | DECLARE("pfWillNap", pfWillNap); | |
196 | DECLARE("pfWillNapb", pfWillNapb); | |
197 | DECLARE("pfNoMSRir", pfNoMSRir); | |
198 | DECLARE("pfNoMSRirb", pfNoMSRirb); | |
199 | DECLARE("pfL3pdet", pfL3pdet); | |
200 | DECLARE("pfL3pdetb", pfL3pdetb); | |
201 | DECLARE("pf128Byte", pf128Byte); | |
202 | DECLARE("pf128Byteb", pf128Byteb); | |
203 | DECLARE("pf32Byte", pf32Byte); | |
204 | DECLARE("pf32Byteb", pf32Byteb); | |
205 | DECLARE("pf64Bit", pf64Bit); | |
206 | DECLARE("pf64Bitb", pf64Bitb); | |
1c79356b A |
207 | DECLARE("pfL3", pfL3); |
208 | DECLARE("pfL3b", pfL3b); | |
209 | DECLARE("pfL3fa", pfL3fa); | |
210 | DECLARE("pfL3fab", pfL3fab); | |
211 | DECLARE("pfValid", pfValid); | |
212 | DECLARE("pfValidb", pfValidb); | |
213 | DECLARE("pfrptdProc", offsetof(struct per_proc_info *, pf.rptdProc)); | |
214 | DECLARE("pflineSize", offsetof(struct per_proc_info *, pf.lineSize)); | |
215 | DECLARE("pfl1iSize", offsetof(struct per_proc_info *, pf.l1iSize)); | |
216 | DECLARE("pfl1dSize", offsetof(struct per_proc_info *, pf.l1dSize)); | |
217 | DECLARE("pfl2cr", offsetof(struct per_proc_info *, pf.l2cr)); | |
218 | DECLARE("pfl2Size", offsetof(struct per_proc_info *, pf.l2Size)); | |
219 | DECLARE("pfl3cr", offsetof(struct per_proc_info *, pf.l3cr)); | |
220 | DECLARE("pfl3Size", offsetof(struct per_proc_info *, pf.l3Size)); | |
221 | DECLARE("pfHID0", offsetof(struct per_proc_info *, pf.pfHID0)); | |
222 | DECLARE("pfHID1", offsetof(struct per_proc_info *, pf.pfHID1)); | |
223 | DECLARE("pfHID2", offsetof(struct per_proc_info *, pf.pfHID2)); | |
224 | DECLARE("pfHID3", offsetof(struct per_proc_info *, pf.pfHID3)); | |
55e303ae A |
225 | DECLARE("pfHID4", offsetof(struct per_proc_info *, pf.pfHID4)); |
226 | DECLARE("pfHID5", offsetof(struct per_proc_info *, pf.pfHID5)); | |
1c79356b A |
227 | DECLARE("pfMSSCR0", offsetof(struct per_proc_info *, pf.pfMSSCR0)); |
228 | DECLARE("pfMSSCR1", offsetof(struct per_proc_info *, pf.pfMSSCR1)); | |
9bccf70c | 229 | DECLARE("pfICTRL", offsetof(struct per_proc_info *, pf.pfICTRL)); |
1c79356b | 230 | DECLARE("pfLDSTCR", offsetof(struct per_proc_info *, pf.pfLDSTCR)); |
0b4e3aa0 | 231 | DECLARE("pfLDSTDB", offsetof(struct per_proc_info *, pf.pfLDSTDB)); |
d52fe63f A |
232 | DECLARE("pfl2crOriginal", offsetof(struct per_proc_info *, pf.l2crOriginal)); |
233 | DECLARE("pfl3crOriginal", offsetof(struct per_proc_info *, pf.l3crOriginal)); | |
9bccf70c | 234 | DECLARE("pfBootConfig", offsetof(struct per_proc_info *, pf.pfBootConfig)); |
4a249263 A |
235 | DECLARE("pfPowerModes", offsetof(struct per_proc_info *, pf.pfPowerModes)); |
236 | DECLARE("pmDPLLVmin", pmDPLLVmin); | |
237 | DECLARE("pmDPLLVminb", pmDPLLVminb); | |
238 | DECLARE("pmPowerTune", pmPowerTune); | |
239 | DECLARE("pmPowerTuneb", pmPowerTuneb); | |
e5568f75 A |
240 | DECLARE("pmDFS", pmDFS); |
241 | DECLARE("pmDFSb", pmDFSb); | |
4a249263 A |
242 | DECLARE("pmDualPLL", pmDualPLL); |
243 | DECLARE("pmDualPLLb", pmDualPLLb); | |
55e303ae A |
244 | DECLARE("pfPTEG", offsetof(struct per_proc_info *, pf.pfPTEG)); |
245 | DECLARE("pfMaxVAddr", offsetof(struct per_proc_info *, pf.pfMaxVAddr)); | |
246 | DECLARE("pfMaxPAddr", offsetof(struct per_proc_info *, pf.pfMaxPAddr)); | |
1c79356b A |
247 | DECLARE("pfSize", sizeof(procFeatures)); |
248 | ||
249 | DECLARE("thrmmaxTemp", offsetof(struct per_proc_info *, thrm.maxTemp)); | |
250 | DECLARE("thrmthrottleTemp", offsetof(struct per_proc_info *, thrm.throttleTemp)); | |
251 | DECLARE("thrmlowTemp", offsetof(struct per_proc_info *, thrm.lowTemp)); | |
252 | DECLARE("thrmhighTemp", offsetof(struct per_proc_info *, thrm.highTemp)); | |
253 | DECLARE("thrm3val", offsetof(struct per_proc_info *, thrm.thrm3val)); | |
254 | DECLARE("thrmSize", sizeof(thrmControl)); | |
255 | ||
55e303ae A |
256 | DECLARE("validSegs", offsetof(struct per_proc_info *, validSegs)); |
257 | DECLARE("ppUserPmapVirt", offsetof(struct per_proc_info *, ppUserPmapVirt)); | |
258 | DECLARE("ppUserPmap", offsetof(struct per_proc_info *, ppUserPmap)); | |
259 | DECLARE("ppMapFlags", offsetof(struct per_proc_info *, ppMapFlags)); | |
260 | DECLARE("ppInvSeg", offsetof(struct per_proc_info *, ppInvSeg)); | |
261 | DECLARE("ppCurSeg", offsetof(struct per_proc_info *, ppCurSeg)); | |
262 | DECLARE("ppSegSteal", offsetof(struct per_proc_info *, ppSegSteal)); | |
263 | ||
264 | DECLARE("VMMareaPhys", offsetof(struct per_proc_info *, VMMareaPhys)); | |
265 | DECLARE("VMMXAFlgs", offsetof(struct per_proc_info *, VMMXAFlgs)); | |
266 | DECLARE("FAMintercept", offsetof(struct per_proc_info *, FAMintercept)); | |
267 | ||
268 | DECLARE("ppCIOmp", offsetof(struct per_proc_info *, ppCIOmp)); | |
269 | ||
270 | DECLARE("tempr0", offsetof(struct per_proc_info *, tempr0)); | |
271 | DECLARE("tempr1", offsetof(struct per_proc_info *, tempr1)); | |
272 | DECLARE("tempr2", offsetof(struct per_proc_info *, tempr2)); | |
273 | DECLARE("tempr3", offsetof(struct per_proc_info *, tempr3)); | |
274 | DECLARE("tempr4", offsetof(struct per_proc_info *, tempr4)); | |
275 | DECLARE("tempr5", offsetof(struct per_proc_info *, tempr5)); | |
276 | DECLARE("tempr6", offsetof(struct per_proc_info *, tempr6)); | |
277 | DECLARE("tempr7", offsetof(struct per_proc_info *, tempr7)); | |
278 | DECLARE("tempr8", offsetof(struct per_proc_info *, tempr8)); | |
279 | DECLARE("tempr9", offsetof(struct per_proc_info *, tempr9)); | |
280 | DECLARE("tempr10", offsetof(struct per_proc_info *, tempr10)); | |
281 | DECLARE("tempr11", offsetof(struct per_proc_info *, tempr11)); | |
282 | DECLARE("tempr12", offsetof(struct per_proc_info *, tempr12)); | |
283 | DECLARE("tempr13", offsetof(struct per_proc_info *, tempr13)); | |
284 | DECLARE("tempr14", offsetof(struct per_proc_info *, tempr14)); | |
285 | DECLARE("tempr15", offsetof(struct per_proc_info *, tempr15)); | |
286 | DECLARE("tempr16", offsetof(struct per_proc_info *, tempr16)); | |
287 | DECLARE("tempr17", offsetof(struct per_proc_info *, tempr17)); | |
288 | DECLARE("tempr18", offsetof(struct per_proc_info *, tempr18)); | |
289 | DECLARE("tempr19", offsetof(struct per_proc_info *, tempr19)); | |
290 | DECLARE("tempr20", offsetof(struct per_proc_info *, tempr20)); | |
291 | DECLARE("tempr21", offsetof(struct per_proc_info *, tempr21)); | |
292 | DECLARE("tempr22", offsetof(struct per_proc_info *, tempr22)); | |
293 | DECLARE("tempr23", offsetof(struct per_proc_info *, tempr23)); | |
294 | DECLARE("tempr24", offsetof(struct per_proc_info *, tempr24)); | |
295 | DECLARE("tempr25", offsetof(struct per_proc_info *, tempr25)); | |
296 | DECLARE("tempr26", offsetof(struct per_proc_info *, tempr26)); | |
297 | DECLARE("tempr27", offsetof(struct per_proc_info *, tempr27)); | |
298 | DECLARE("tempr28", offsetof(struct per_proc_info *, tempr28)); | |
299 | DECLARE("tempr29", offsetof(struct per_proc_info *, tempr29)); | |
300 | DECLARE("tempr30", offsetof(struct per_proc_info *, tempr30)); | |
301 | DECLARE("tempr31", offsetof(struct per_proc_info *, tempr31)); | |
1c79356b A |
302 | |
303 | DECLARE("emfp0", offsetof(struct per_proc_info *, emfp0)); | |
304 | DECLARE("emfp1", offsetof(struct per_proc_info *, emfp1)); | |
305 | DECLARE("emfp2", offsetof(struct per_proc_info *, emfp2)); | |
306 | DECLARE("emfp3", offsetof(struct per_proc_info *, emfp3)); | |
307 | DECLARE("emfp4", offsetof(struct per_proc_info *, emfp4)); | |
308 | DECLARE("emfp5", offsetof(struct per_proc_info *, emfp5)); | |
309 | DECLARE("emfp6", offsetof(struct per_proc_info *, emfp6)); | |
310 | DECLARE("emfp7", offsetof(struct per_proc_info *, emfp7)); | |
311 | DECLARE("emfp8", offsetof(struct per_proc_info *, emfp8)); | |
312 | DECLARE("emfp9", offsetof(struct per_proc_info *, emfp9)); | |
313 | DECLARE("emfp10", offsetof(struct per_proc_info *, emfp10)); | |
314 | DECLARE("emfp11", offsetof(struct per_proc_info *, emfp11)); | |
315 | DECLARE("emfp12", offsetof(struct per_proc_info *, emfp12)); | |
316 | DECLARE("emfp13", offsetof(struct per_proc_info *, emfp13)); | |
317 | DECLARE("emfp14", offsetof(struct per_proc_info *, emfp14)); | |
318 | DECLARE("emfp15", offsetof(struct per_proc_info *, emfp15)); | |
319 | DECLARE("emfp16", offsetof(struct per_proc_info *, emfp16)); | |
320 | DECLARE("emfp17", offsetof(struct per_proc_info *, emfp17)); | |
321 | DECLARE("emfp18", offsetof(struct per_proc_info *, emfp18)); | |
322 | DECLARE("emfp19", offsetof(struct per_proc_info *, emfp19)); | |
323 | DECLARE("emfp20", offsetof(struct per_proc_info *, emfp20)); | |
324 | DECLARE("emfp21", offsetof(struct per_proc_info *, emfp21)); | |
325 | DECLARE("emfp22", offsetof(struct per_proc_info *, emfp22)); | |
326 | DECLARE("emfp23", offsetof(struct per_proc_info *, emfp23)); | |
327 | DECLARE("emfp24", offsetof(struct per_proc_info *, emfp24)); | |
328 | DECLARE("emfp25", offsetof(struct per_proc_info *, emfp25)); | |
329 | DECLARE("emfp26", offsetof(struct per_proc_info *, emfp26)); | |
330 | DECLARE("emfp27", offsetof(struct per_proc_info *, emfp27)); | |
331 | DECLARE("emfp28", offsetof(struct per_proc_info *, emfp28)); | |
332 | DECLARE("emfp29", offsetof(struct per_proc_info *, emfp29)); | |
333 | DECLARE("emfp30", offsetof(struct per_proc_info *, emfp30)); | |
334 | DECLARE("emfp31", offsetof(struct per_proc_info *, emfp31)); | |
335 | DECLARE("emfpscr_pad", offsetof(struct per_proc_info *, emfpscr_pad)); | |
336 | DECLARE("emfpscr", offsetof(struct per_proc_info *, emfpscr)); | |
337 | ||
338 | DECLARE("emvr0", offsetof(struct per_proc_info *, emvr0)); | |
339 | DECLARE("emvr1", offsetof(struct per_proc_info *, emvr1)); | |
340 | DECLARE("emvr2", offsetof(struct per_proc_info *, emvr2)); | |
341 | DECLARE("emvr3", offsetof(struct per_proc_info *, emvr3)); | |
342 | DECLARE("emvr4", offsetof(struct per_proc_info *, emvr4)); | |
343 | DECLARE("emvr5", offsetof(struct per_proc_info *, emvr5)); | |
344 | DECLARE("emvr6", offsetof(struct per_proc_info *, emvr6)); | |
345 | DECLARE("emvr7", offsetof(struct per_proc_info *, emvr7)); | |
346 | DECLARE("emvr8", offsetof(struct per_proc_info *, emvr8)); | |
347 | DECLARE("emvr9", offsetof(struct per_proc_info *, emvr9)); | |
348 | DECLARE("emvr10", offsetof(struct per_proc_info *, emvr10)); | |
349 | DECLARE("emvr11", offsetof(struct per_proc_info *, emvr11)); | |
350 | DECLARE("emvr12", offsetof(struct per_proc_info *, emvr12)); | |
351 | DECLARE("emvr13", offsetof(struct per_proc_info *, emvr13)); | |
352 | DECLARE("emvr14", offsetof(struct per_proc_info *, emvr14)); | |
353 | DECLARE("emvr15", offsetof(struct per_proc_info *, emvr15)); | |
354 | DECLARE("emvr16", offsetof(struct per_proc_info *, emvr16)); | |
355 | DECLARE("emvr17", offsetof(struct per_proc_info *, emvr17)); | |
356 | DECLARE("emvr18", offsetof(struct per_proc_info *, emvr18)); | |
357 | DECLARE("emvr19", offsetof(struct per_proc_info *, emvr19)); | |
358 | DECLARE("emvr20", offsetof(struct per_proc_info *, emvr20)); | |
359 | DECLARE("emvr21", offsetof(struct per_proc_info *, emvr21)); | |
360 | DECLARE("emvr22", offsetof(struct per_proc_info *, emvr22)); | |
361 | DECLARE("emvr23", offsetof(struct per_proc_info *, emvr23)); | |
362 | DECLARE("emvr24", offsetof(struct per_proc_info *, emvr24)); | |
363 | DECLARE("emvr25", offsetof(struct per_proc_info *, emvr25)); | |
364 | DECLARE("emvr26", offsetof(struct per_proc_info *, emvr26)); | |
365 | DECLARE("emvr27", offsetof(struct per_proc_info *, emvr27)); | |
366 | DECLARE("emvr28", offsetof(struct per_proc_info *, emvr28)); | |
367 | DECLARE("emvr29", offsetof(struct per_proc_info *, emvr29)); | |
368 | DECLARE("emvr30", offsetof(struct per_proc_info *, emvr30)); | |
369 | DECLARE("emvr31", offsetof(struct per_proc_info *, emvr31)); | |
370 | DECLARE("empadvr", offsetof(struct per_proc_info *, empadvr)); | |
55e303ae | 371 | DECLARE("skipListPrev", offsetof(struct per_proc_info *, skipListPrev)); |
1c79356b | 372 | DECLARE("ppSize", sizeof(struct per_proc_info)); |
0b4e3aa0 | 373 | DECLARE("patcharea", offsetof(struct per_proc_info *, patcharea)); |
1c79356b | 374 | |
55e303ae A |
375 | DECLARE("hwCounts", offsetof(struct per_proc_info *, hwCtr)); |
376 | DECLARE("hwInVains", offsetof(struct per_proc_info *, hwCtr.hwInVains)); | |
377 | DECLARE("hwResets", offsetof(struct per_proc_info *, hwCtr.hwResets)); | |
378 | DECLARE("hwMachineChecks", offsetof(struct per_proc_info *, hwCtr.hwMachineChecks)); | |
379 | DECLARE("hwDSIs", offsetof(struct per_proc_info *, hwCtr.hwDSIs)); | |
380 | DECLARE("hwISIs", offsetof(struct per_proc_info *, hwCtr.hwISIs)); | |
381 | DECLARE("hwExternals", offsetof(struct per_proc_info *, hwCtr.hwExternals)); | |
382 | DECLARE("hwAlignments", offsetof(struct per_proc_info *, hwCtr.hwAlignments)); | |
383 | DECLARE("hwPrograms", offsetof(struct per_proc_info *, hwCtr.hwPrograms)); | |
384 | DECLARE("hwFloatPointUnavailable", offsetof(struct per_proc_info *, hwCtr.hwFloatPointUnavailable)); | |
385 | DECLARE("hwDecrementers", offsetof(struct per_proc_info *, hwCtr.hwDecrementers)); | |
386 | DECLARE("hwIOErrors", offsetof(struct per_proc_info *, hwCtr.hwIOErrors)); | |
387 | DECLARE("hwrsvd0", offsetof(struct per_proc_info *, hwCtr.hwrsvd0)); | |
388 | DECLARE("hwSystemCalls", offsetof(struct per_proc_info *, hwCtr.hwSystemCalls)); | |
389 | DECLARE("hwTraces", offsetof(struct per_proc_info *, hwCtr.hwTraces)); | |
390 | DECLARE("hwFloatingPointAssists", offsetof(struct per_proc_info *, hwCtr.hwFloatingPointAssists)); | |
391 | DECLARE("hwPerformanceMonitors", offsetof(struct per_proc_info *, hwCtr.hwPerformanceMonitors)); | |
392 | DECLARE("hwAltivecs", offsetof(struct per_proc_info *, hwCtr.hwAltivecs)); | |
393 | DECLARE("hwrsvd1", offsetof(struct per_proc_info *, hwCtr.hwrsvd1)); | |
394 | DECLARE("hwrsvd2", offsetof(struct per_proc_info *, hwCtr.hwrsvd2)); | |
395 | DECLARE("hwrsvd3", offsetof(struct per_proc_info *, hwCtr.hwrsvd3)); | |
396 | DECLARE("hwInstBreakpoints", offsetof(struct per_proc_info *, hwCtr.hwInstBreakpoints)); | |
397 | DECLARE("hwSystemManagements", offsetof(struct per_proc_info *, hwCtr.hwSystemManagements)); | |
398 | DECLARE("hwAltivecAssists", offsetof(struct per_proc_info *, hwCtr.hwAltivecAssists)); | |
399 | DECLARE("hwThermal", offsetof(struct per_proc_info *, hwCtr.hwThermal)); | |
400 | DECLARE("hwrsvd5", offsetof(struct per_proc_info *, hwCtr.hwrsvd5)); | |
401 | DECLARE("hwrsvd6", offsetof(struct per_proc_info *, hwCtr.hwrsvd6)); | |
402 | DECLARE("hwrsvd7", offsetof(struct per_proc_info *, hwCtr.hwrsvd7)); | |
403 | DECLARE("hwrsvd8", offsetof(struct per_proc_info *, hwCtr.hwrsvd8)); | |
404 | DECLARE("hwrsvd9", offsetof(struct per_proc_info *, hwCtr.hwrsvd9)); | |
405 | DECLARE("hwrsvd10", offsetof(struct per_proc_info *, hwCtr.hwrsvd10)); | |
406 | DECLARE("hwrsvd11", offsetof(struct per_proc_info *, hwCtr.hwrsvd11)); | |
407 | DECLARE("hwrsvd12", offsetof(struct per_proc_info *, hwCtr.hwrsvd12)); | |
408 | DECLARE("hwrsvd13", offsetof(struct per_proc_info *, hwCtr.hwrsvd13)); | |
409 | DECLARE("hwTrace601", offsetof(struct per_proc_info *, hwCtr.hwTrace601)); | |
410 | DECLARE("hwSIGPs", offsetof(struct per_proc_info *, hwCtr.hwSIGPs)); | |
411 | DECLARE("hwPreemptions", offsetof(struct per_proc_info *, hwCtr.hwPreemptions)); | |
412 | DECLARE("hwContextSwitchs", offsetof(struct per_proc_info *, hwCtr.hwContextSwitchs)); | |
413 | DECLARE("hwShutdowns", offsetof(struct per_proc_info *, hwCtr.hwShutdowns)); | |
414 | DECLARE("hwChokes", offsetof(struct per_proc_info *, hwCtr.hwChokes)); | |
415 | DECLARE("hwDataSegments", offsetof(struct per_proc_info *, hwCtr.hwDataSegments)); | |
416 | DECLARE("hwInstructionSegments", offsetof(struct per_proc_info *, hwCtr.hwInstructionSegments)); | |
417 | DECLARE("hwSoftPatches", offsetof(struct per_proc_info *, hwCtr.hwSoftPatches)); | |
418 | DECLARE("hwMaintenances", offsetof(struct per_proc_info *, hwCtr.hwMaintenances)); | |
419 | DECLARE("hwInstrumentations", offsetof(struct per_proc_info *, hwCtr.hwInstrumentations)); | |
420 | DECLARE("hwRedrives", offsetof(struct per_proc_info *, hwCtr.hwRedrives)); | |
421 | DECLARE("hwSteals", offsetof(struct per_proc_info *, hwCtr.hwSteals)); | |
422 | ||
423 | DECLARE("hwMckHang", offsetof(struct per_proc_info *, hwCtr.hwMckHang)); | |
424 | DECLARE("hwMckSLBPE", offsetof(struct per_proc_info *, hwCtr.hwMckSLBPE)); | |
425 | DECLARE("hwMckTLBPE", offsetof(struct per_proc_info *, hwCtr.hwMckTLBPE)); | |
426 | DECLARE("hwMckERCPE", offsetof(struct per_proc_info *, hwCtr.hwMckERCPE)); | |
427 | DECLARE("hwMckL1DPE", offsetof(struct per_proc_info *, hwCtr.hwMckL1DPE)); | |
428 | DECLARE("hwMckL1TPE", offsetof(struct per_proc_info *, hwCtr.hwMckL1TPE)); | |
429 | DECLARE("hwMckUE", offsetof(struct per_proc_info *, hwCtr.hwMckUE)); | |
430 | DECLARE("hwMckIUE", offsetof(struct per_proc_info *, hwCtr.hwMckIUE)); | |
431 | DECLARE("hwMckIUEr", offsetof(struct per_proc_info *, hwCtr.hwMckIUEr)); | |
432 | DECLARE("hwMckDUE", offsetof(struct per_proc_info *, hwCtr.hwMckDUE)); | |
433 | DECLARE("hwMckDTW", offsetof(struct per_proc_info *, hwCtr.hwMckDTW)); | |
434 | DECLARE("hwMckUnk", offsetof(struct per_proc_info *, hwCtr.hwMckUnk)); | |
435 | DECLARE("hwMckExt", offsetof(struct per_proc_info *, hwCtr.hwMckExt)); | |
436 | DECLARE("hwMckICachePE", offsetof(struct per_proc_info *, hwCtr.hwMckICachePE)); | |
437 | DECLARE("hwMckITagPE", offsetof(struct per_proc_info *, hwCtr.hwMckITagPE)); | |
438 | DECLARE("hwMckIEratPE", offsetof(struct per_proc_info *, hwCtr.hwMckIEratPE)); | |
439 | DECLARE("hwMckDEratPE", offsetof(struct per_proc_info *, hwCtr.hwMckDEratPE)); | |
440 | ||
441 | DECLARE("napStamp", offsetof(struct per_proc_info *, hwCtr.napStamp)); | |
442 | DECLARE("napTotal", offsetof(struct per_proc_info *, hwCtr.napTotal)); | |
443 | ||
444 | DECLARE("patchAddr", offsetof(struct patch_entry *, addr)); | |
445 | DECLARE("patchData", offsetof(struct patch_entry *, data)); | |
446 | DECLARE("patchType", offsetof(struct patch_entry *, type)); | |
447 | DECLARE("patchValue", offsetof(struct patch_entry *, value)); | |
448 | DECLARE("peSize", sizeof(patch_entry_t)); | |
449 | DECLARE("PATCH_PROCESSOR", PATCH_PROCESSOR); | |
450 | DECLARE("PATCH_FEATURE", PATCH_FEATURE); | |
451 | DECLARE("PATCH_TABLE_SIZE", PATCH_TABLE_SIZE); | |
452 | DECLARE("PatchExt32", PatchExt32); | |
453 | DECLARE("PatchExt32b", PatchExt32b); | |
454 | DECLARE("PatchLwsync", PatchLwsync); | |
455 | DECLARE("PatchLwsyncb", PatchLwsyncb); | |
456 | ||
9bccf70c A |
457 | DECLARE("RESETHANDLER_TYPE", offsetof(struct resethandler *, type)); |
458 | DECLARE("RESETHANDLER_CALL", offsetof(struct resethandler *, call_paddr)); | |
459 | DECLARE("RESETHANDLER_ARG", offsetof(struct resethandler *, arg__paddr)); | |
1c79356b A |
460 | |
461 | /* we want offset from | |
462 | * bottom of kernel stack, not offset into structure | |
463 | */ | |
464 | #define IKSBASE (u_int)STACK_IKS(0) | |
465 | ||
466 | /* values from kern/thread.h */ | |
55e303ae A |
467 | DECLARE("THREAD_TOP_ACT", offsetof(thread_t, top_act)); |
468 | DECLARE("THREAD_KERNEL_STACK", offsetof(thread_act_t, kernel_stack)); | |
469 | DECLARE("THREAD_RECOVER", offsetof(thread_act_t, recover)); | |
9bccf70c | 470 | DECLARE("THREAD_FUNNEL_LOCK", |
55e303ae | 471 | offsetof(thread_act_t, funnel_lock)); |
9bccf70c | 472 | DECLARE("THREAD_FUNNEL_STATE", |
55e303ae | 473 | offsetof(thread_act_t, funnel_state)); |
9bccf70c A |
474 | DECLARE("LOCK_FNL_MUTEX", |
475 | offsetof(struct funnel_lock *, fnl_mutex)); | |
1c79356b | 476 | #if MACH_LDEBUG |
55e303ae | 477 | DECLARE("THREAD_MUTEX_COUNT", offsetof(thread_t, mutex_count)); |
1c79356b | 478 | #endif /* MACH_LDEBUG */ |
1c79356b A |
479 | |
480 | /* values from kern/thread_act.h */ | |
55e303ae A |
481 | DECLARE("ACT_TASK", offsetof(thread_act_t, task)); |
482 | DECLARE("ACT_THREAD", offsetof(thread_act_t, thread)); | |
483 | DECLARE("ACT_LOWER", offsetof(thread_act_t, lower)); | |
484 | DECLARE("ACT_MACT_PCB", offsetof(thread_act_t, mact.pcb)); | |
485 | DECLARE("ACT_MACT_UPCB", offsetof(thread_act_t, mact.upcb)); | |
486 | DECLARE("ACT_AST", offsetof(thread_act_t, ast)); | |
487 | DECLARE("ACT_VMMAP", offsetof(thread_act_t, map)); | |
488 | DECLARE("vmmCEntry", offsetof(thread_act_t, mact.vmmCEntry)); | |
489 | DECLARE("vmmControl", offsetof(thread_act_t, mact.vmmControl)); | |
490 | DECLARE("curctx", offsetof(thread_act_t, mact.curctx)); | |
491 | DECLARE("deferctx", offsetof(thread_act_t, mact.deferctx)); | |
492 | DECLARE("facctx", offsetof(thread_act_t, mact.facctx)); | |
1c79356b | 493 | #ifdef MACH_BSD |
55e303ae | 494 | DECLARE("CTHREAD_SELF", offsetof(thread_act_t, mact.cthread_self)); |
1c79356b A |
495 | #endif |
496 | ||
9bccf70c A |
497 | DECLARE("FPUsave", offsetof(struct facility_context *,FPUsave)); |
498 | DECLARE("FPUlevel", offsetof(struct facility_context *,FPUlevel)); | |
499 | DECLARE("FPUcpu", offsetof(struct facility_context *,FPUcpu)); | |
55e303ae | 500 | DECLARE("FPUsync", offsetof(struct facility_context *,FPUsync)); |
9bccf70c A |
501 | DECLARE("VMXsave", offsetof(struct facility_context *,VMXsave)); |
502 | DECLARE("VMXlevel", offsetof(struct facility_context *,VMXlevel)); | |
503 | DECLARE("VMXcpu", offsetof(struct facility_context *,VMXcpu)); | |
55e303ae | 504 | DECLARE("VMXsync", offsetof(struct facility_context *,VMXsync)); |
9bccf70c A |
505 | DECLARE("facAct", offsetof(struct facility_context *,facAct)); |
506 | ||
1c79356b A |
507 | /* Values from vmachmon.h */ |
508 | ||
509 | DECLARE("kVmmGetVersion", kVmmGetVersion); | |
510 | DECLARE("kVmmvGetFeatures", kVmmvGetFeatures); | |
511 | DECLARE("kVmmInitContext", kVmmInitContext); | |
512 | DECLARE("kVmmTearDownContext", kVmmTearDownContext); | |
513 | DECLARE("kVmmTearDownAll", kVmmTearDownAll); | |
514 | DECLARE("kVmmMapPage", kVmmMapPage); | |
515 | DECLARE("kVmmGetPageMapping", kVmmGetPageMapping); | |
516 | DECLARE("kVmmUnmapPage", kVmmUnmapPage); | |
517 | DECLARE("kVmmUnmapAllPages", kVmmUnmapAllPages); | |
518 | DECLARE("kVmmGetPageDirtyFlag", kVmmGetPageDirtyFlag); | |
519 | DECLARE("kVmmGetFloatState", kVmmGetFloatState); | |
520 | DECLARE("kVmmGetVectorState", kVmmGetVectorState); | |
521 | DECLARE("kVmmSetTimer", kVmmSetTimer); | |
55e303ae | 522 | DECLARE("kVmmGetTimer", kVmmGetTimer); |
1c79356b | 523 | DECLARE("kVmmExecuteVM", kVmmExecuteVM); |
0b4e3aa0 | 524 | DECLARE("kVmmProtectPage", kVmmProtectPage); |
55e303ae A |
525 | DECLARE("kVmmMapList", kVmmMapList); |
526 | DECLARE("kVmmUnmapList", kVmmUnmapList); | |
527 | DECLARE("kVmmSetXA", kVmmSetXA); | |
528 | DECLARE("kVmmGetXA", kVmmGetXA); | |
529 | DECLARE("kVmmMapPage64", kVmmMapPage64); | |
530 | DECLARE("kVmmGetPageMapping64", kVmmGetPageMapping64); | |
531 | DECLARE("kVmmUnmapPage64", kVmmUnmapPage64); | |
532 | DECLARE("kVmmGetPageDirtyFlag64", kVmmGetPageDirtyFlag64); | |
533 | DECLARE("kVmmMapExecute64", kVmmMapExecute64); | |
534 | DECLARE("kVmmProtectExecute64", kVmmProtectExecute64); | |
535 | DECLARE("kVmmMapList64", kVmmMapList64); | |
536 | DECLARE("kVmmUnmapList64", kVmmUnmapList64); | |
d7e50217 A |
537 | DECLARE("kvmmExitToHost", kvmmExitToHost); |
538 | DECLARE("kvmmResumeGuest", kvmmResumeGuest); | |
539 | DECLARE("kvmmGetGuestRegister", kvmmGetGuestRegister); | |
540 | DECLARE("kvmmSetGuestRegister", kvmmSetGuestRegister); | |
1c79356b A |
541 | |
542 | DECLARE("kVmmReturnNull", kVmmReturnNull); | |
0b4e3aa0 | 543 | DECLARE("kVmmStopped", kVmmStopped); |
1c79356b A |
544 | DECLARE("kVmmBogusContext", kVmmBogusContext); |
545 | DECLARE("kVmmReturnDataPageFault", kVmmReturnDataPageFault); | |
546 | DECLARE("kVmmReturnInstrPageFault", kVmmReturnInstrPageFault); | |
547 | DECLARE("kVmmReturnAlignmentFault", kVmmReturnAlignmentFault); | |
548 | DECLARE("kVmmReturnProgramException", kVmmReturnProgramException); | |
549 | DECLARE("kVmmReturnSystemCall", kVmmReturnSystemCall); | |
550 | DECLARE("kVmmReturnTraceException", kVmmReturnTraceException); | |
55e303ae | 551 | DECLARE("kVmmInvalidAdSpace", kVmmInvalidAdSpace); |
0b4e3aa0 A |
552 | |
553 | DECLARE("kVmmProtXtnd", kVmmProtXtnd); | |
554 | DECLARE("kVmmProtNARW", kVmmProtNARW); | |
555 | DECLARE("kVmmProtRORW", kVmmProtRORW); | |
556 | DECLARE("kVmmProtRWRW", kVmmProtRWRW); | |
557 | DECLARE("kVmmProtRORO", kVmmProtRORO); | |
1c79356b A |
558 | |
559 | DECLARE("vmmFlags", offsetof(struct vmmCntrlEntry *, vmmFlags)); | |
55e303ae A |
560 | DECLARE("vmmXAFlgs", offsetof(struct vmmCntrlEntry *, vmmXAFlgs)); |
561 | DECLARE("vmmPmap", offsetof(struct vmmCntrlEntry *, vmmPmap)); | |
1c79356b A |
562 | DECLARE("vmmInUseb", vmmInUseb); |
563 | DECLARE("vmmInUse", vmmInUse); | |
1c79356b | 564 | DECLARE("vmmContextKern", offsetof(struct vmmCntrlEntry *, vmmContextKern)); |
d7e50217 | 565 | DECLARE("vmmContextPhys", offsetof(struct vmmCntrlEntry *, vmmContextPhys)); |
1c79356b | 566 | DECLARE("vmmContextUser", offsetof(struct vmmCntrlEntry *, vmmContextUser)); |
9bccf70c | 567 | DECLARE("vmmFacCtx", offsetof(struct vmmCntrlEntry *, vmmFacCtx)); |
55e303ae A |
568 | DECLARE("vmmLastMap", offsetof(struct vmmCntrlTable *, vmmLastMap)); |
569 | DECLARE("vmmGFlags", offsetof(struct vmmCntrlTable *, vmmGFlags)); | |
570 | DECLARE("vmmc", offsetof(struct vmmCntrlTable *, vmmc)); | |
571 | DECLARE("vmmAdsp", offsetof(struct vmmCntrlTable *, vmmAdsp)); | |
572 | DECLARE("vmmLastAdSp", vmmLastAdSp); | |
d7e50217 | 573 | DECLARE("vmmFAMintercept", offsetof(struct vmmCntrlEntry *, vmmFAMintercept)); |
1c79356b | 574 | DECLARE("vmmCEntrySize", sizeof(struct vmmCntrlEntry)); |
55e303ae | 575 | DECLARE("kVmmMaxContexts", kVmmMaxContexts); |
1c79356b A |
576 | |
577 | DECLARE("interface_version", offsetof(struct vmm_state_page_t *, interface_version)); | |
578 | DECLARE("thread_index", offsetof(struct vmm_state_page_t *, thread_index)); | |
579 | DECLARE("vmmStat", offsetof(struct vmm_state_page_t *, vmmStat)); | |
580 | DECLARE("vmmCntrl", offsetof(struct vmm_state_page_t *, vmmCntrl)); | |
55e303ae A |
581 | DECLARE("vmm_proc_state", offsetof(struct vmm_state_page_t *, vmm_proc_state)); |
582 | ||
1c79356b | 583 | DECLARE("return_code", offsetof(struct vmm_state_page_t *, return_code)); |
55e303ae A |
584 | |
585 | DECLARE("return_params", offsetof(struct vmm_state_page_t *, vmmRet.vmmrp32.return_params)); | |
586 | DECLARE("return_paramsX", offsetof(struct vmm_state_page_t *, vmmRet.vmmrp64.return_params)); | |
587 | ||
588 | #if 0 | |
1c79356b A |
589 | DECLARE("return_params", offsetof(struct vmm_state_page_t *, return_params)); |
590 | DECLARE("vmm_proc_state", offsetof(struct vmm_state_page_t *, vmm_proc_state)); | |
55e303ae | 591 | #endif |
1c79356b A |
592 | DECLARE("vmmppcVRs", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcVRs)); |
593 | DECLARE("vmmppcVSCR", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcVSCR)); | |
594 | DECLARE("vmmppcFPRs", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcFPRs)); | |
595 | DECLARE("vmmppcFPSCR", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcFPSCR)); | |
55e303ae A |
596 | |
597 | DECLARE("vmmppcpc", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcPC)); | |
598 | DECLARE("vmmppcmsr", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcMSR)); | |
599 | DECLARE("vmmppcr0", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x00)); | |
600 | DECLARE("vmmppcr1", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x04)); | |
601 | DECLARE("vmmppcr2", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x08)); | |
602 | DECLARE("vmmppcr3", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x0C)); | |
603 | DECLARE("vmmppcr4", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x10)); | |
604 | DECLARE("vmmppcr5", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x14)); | |
605 | ||
606 | DECLARE("vmmppcr6", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x18)); | |
607 | DECLARE("vmmppcr7", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x1C)); | |
608 | DECLARE("vmmppcr8", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x20)); | |
609 | DECLARE("vmmppcr9", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x24)); | |
610 | DECLARE("vmmppcr10", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x28)); | |
611 | DECLARE("vmmppcr11", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x2C)); | |
612 | DECLARE("vmmppcr12", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x30)); | |
613 | DECLARE("vmmppcr13", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x34)); | |
614 | ||
615 | DECLARE("vmmppcr14", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x38)); | |
616 | DECLARE("vmmppcr15", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x3C)); | |
617 | DECLARE("vmmppcr16", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x40)); | |
618 | DECLARE("vmmppcr17", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x44)); | |
619 | DECLARE("vmmppcr18", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x48)); | |
620 | DECLARE("vmmppcr19", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x4C)); | |
621 | DECLARE("vmmppcr20", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x50)); | |
622 | DECLARE("vmmppcr21", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x54)); | |
623 | ||
624 | DECLARE("vmmppcr22", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x58)); | |
625 | DECLARE("vmmppcr23", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x5C)); | |
626 | DECLARE("vmmppcr24", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x60)); | |
627 | DECLARE("vmmppcr25", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x64)); | |
628 | DECLARE("vmmppcr26", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x68)); | |
629 | DECLARE("vmmppcr27", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x6C)); | |
630 | DECLARE("vmmppcr28", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x70)); | |
631 | DECLARE("vmmppcr29", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x74)); | |
632 | ||
633 | DECLARE("vmmppcr30", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x78)); | |
634 | DECLARE("vmmppcr31", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcGPRs+0x7C)); | |
635 | DECLARE("vmmppccr", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcCR)); | |
636 | DECLARE("vmmppcxer", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcXER)); | |
637 | DECLARE("vmmppclr", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcLR)); | |
638 | DECLARE("vmmppcctr", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcCTR)); | |
639 | DECLARE("vmmppcmq", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcMQ)); | |
640 | DECLARE("vmmppcvrsave", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs32.ppcVRSave)); | |
641 | ||
642 | DECLARE("vmmppcXpc", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcPC)); | |
643 | DECLARE("vmmppcXmsr", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcMSR)); | |
644 | DECLARE("vmmppcXr0", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0x00)); | |
645 | DECLARE("vmmppcXr1", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0x08)); | |
646 | DECLARE("vmmppcXr2", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0x10)); | |
647 | DECLARE("vmmppcXr3", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0x18)); | |
648 | DECLARE("vmmppcXr4", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0x20)); | |
649 | DECLARE("vmmppcXr5", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0x28)); | |
650 | ||
651 | DECLARE("vmmppcXr6", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0x30)); | |
652 | DECLARE("vmmppcXr7", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0x38)); | |
653 | DECLARE("vmmppcXr8", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0x40)); | |
654 | DECLARE("vmmppcXr9", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0x48)); | |
655 | DECLARE("vmmppcXr10", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0x50)); | |
656 | DECLARE("vmmppcXr11", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0x58)); | |
657 | DECLARE("vmmppcXr12", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0x60)); | |
658 | DECLARE("vmmppcXr13", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0x68)); | |
659 | ||
660 | DECLARE("vmmppcXr14", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0x70)); | |
661 | DECLARE("vmmppcXr15", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0x78)); | |
662 | DECLARE("vmmppcXr16", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0x80)); | |
663 | DECLARE("vmmppcXr17", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0x88)); | |
664 | DECLARE("vmmppcXr18", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0x90)); | |
665 | DECLARE("vmmppcXr19", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0x98)); | |
666 | DECLARE("vmmppcXr20", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0xA0)); | |
667 | DECLARE("vmmppcXr21", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0xA8)); | |
668 | ||
669 | DECLARE("vmmppcXr22", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0xB0)); | |
670 | DECLARE("vmmppcXr23", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0xB8)); | |
671 | DECLARE("vmmppcXr24", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0xC0)); | |
672 | DECLARE("vmmppcXr25", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0xC8)); | |
673 | DECLARE("vmmppcXr26", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0xD0)); | |
674 | DECLARE("vmmppcXr27", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0xD8)); | |
675 | DECLARE("vmmppcXr28", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0xE0)); | |
676 | DECLARE("vmmppcXr29", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0xE8)); | |
677 | ||
678 | DECLARE("vmmppcXr30", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0xF0)); | |
679 | DECLARE("vmmppcXr31", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcGPRs+0xF8)); | |
680 | DECLARE("vmmppcXcr", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcCR)); | |
681 | DECLARE("vmmppcXxer", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcXER)); | |
682 | DECLARE("vmmppcXlr", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcLR)); | |
683 | DECLARE("vmmppcXctr", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcCTR)); | |
684 | DECLARE("vmmppcXvrsave", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcRegs.ppcRegs64.ppcVRSave)); | |
9bccf70c A |
685 | |
686 | DECLARE("vmmppcvscr", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcVSCR+0x00)); | |
687 | DECLARE("vmmppcfpscrpad", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcFPSCR)); | |
688 | DECLARE("vmmppcfpscr", offsetof(struct vmm_state_page_t *, vmm_proc_state.ppcFPSCR+4)); | |
689 | ||
55e303ae A |
690 | DECLARE("famguestr0", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs32.guest_register)); |
691 | DECLARE("famguestr1", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs32.guest_register+0x4)); | |
692 | DECLARE("famguestr2", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs32.guest_register+0x8)); | |
693 | DECLARE("famguestr3", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs32.guest_register+0xC)); | |
694 | DECLARE("famguestr4", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs32.guest_register+0x10)); | |
695 | DECLARE("famguestr5", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs32.guest_register+0x14)); | |
696 | DECLARE("famguestr6", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs32.guest_register+0x18)); | |
697 | DECLARE("famguestr7", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs32.guest_register+0x1C)); | |
698 | DECLARE("famguestpc", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs32.guest_pc)); | |
699 | DECLARE("famguestmsr", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs32.guest_msr)); | |
700 | DECLARE("famdispcode", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs32.fastassist_dispatch_code)); | |
701 | DECLARE("famrefcon", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs32.fastassist_refcon)); | |
702 | DECLARE("famparam", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs32.fastassist_parameter)); | |
703 | DECLARE("famhandler", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs32.fastassist_dispatch)); | |
704 | DECLARE("famintercepts", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs32.fastassist_intercepts)); | |
705 | ||
706 | DECLARE("famguestXr0", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs64.guest_register)); | |
707 | DECLARE("famguestXr1", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs64.guest_register+0x8)); | |
708 | DECLARE("famguestXr2", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs64.guest_register+0x10)); | |
709 | DECLARE("famguestXr3", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs64.guest_register+0x18)); | |
710 | DECLARE("famguestXr4", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs64.guest_register+0x20)); | |
711 | DECLARE("famguestXr5", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs64.guest_register+0x28)); | |
712 | DECLARE("famguestXr6", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs64.guest_register+0x30)); | |
713 | DECLARE("famguestXr7", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs64.guest_register+0x38)); | |
714 | DECLARE("famguestXpc", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs64.guest_pc)); | |
715 | DECLARE("famguestXmsr", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs64.guest_msr)); | |
716 | DECLARE("famdispcodeX", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs64.fastassist_dispatch_code)); | |
717 | DECLARE("famrefconX", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs64.fastassist_refcon)); | |
718 | DECLARE("famparamX", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs64.fastassist_parameter)); | |
719 | DECLARE("famhandlerX", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs64.fastassist_dispatch)); | |
720 | DECLARE("faminterceptsX", offsetof(struct vmm_state_page_t *, vmm_fastassist_state.vmmfs64.fastassist_intercepts)); | |
d7e50217 | 721 | |
1c79356b A |
722 | DECLARE("vmmFloatCngd", vmmFloatCngd); |
723 | DECLARE("vmmFloatCngdb", vmmFloatCngdb); | |
724 | DECLARE("vmmVectCngd", vmmVectCngd); | |
725 | DECLARE("vmmVectCngdb", vmmVectCngdb); | |
726 | DECLARE("vmmTimerPop", vmmTimerPop); | |
727 | DECLARE("vmmTimerPopb", vmmTimerPopb); | |
d7e50217 A |
728 | DECLARE("vmmFAMmode", vmmFAMmode); |
729 | DECLARE("vmmFAMmodeb", vmmFAMmodeb); | |
1c79356b A |
730 | DECLARE("vmmSpfSave", vmmSpfSave); |
731 | DECLARE("vmmSpfSaveb", vmmSpfSaveb); | |
732 | DECLARE("vmmFloatLoad", vmmFloatLoad); | |
733 | DECLARE("vmmFloatLoadb", vmmFloatLoadb); | |
734 | DECLARE("vmmVectLoad", vmmVectLoad); | |
735 | DECLARE("vmmVectLoadb", vmmVectLoadb); | |
736 | DECLARE("vmmVectVRall", vmmVectVRall); | |
737 | DECLARE("vmmVectVRallb", vmmVectVRallb); | |
738 | DECLARE("vmmVectVAss", vmmVectVAss); | |
739 | DECLARE("vmmVectVAssb", vmmVectVAssb); | |
0b4e3aa0 A |
740 | DECLARE("vmmXStart", vmmXStart); |
741 | DECLARE("vmmXStartb", vmmXStartb); | |
55e303ae | 742 | DECLARE("vmmXStop", vmmXStop); |
0b4e3aa0 | 743 | DECLARE("vmmXStopb", vmmXStopb); |
55e303ae A |
744 | DECLARE("vmmKey", vmmKey); |
745 | DECLARE("vmmKeyb", vmmKeyb); | |
d7e50217 A |
746 | DECLARE("vmmFamSet", vmmFamSet); |
747 | DECLARE("vmmFamSetb", vmmFamSetb); | |
748 | DECLARE("vmmFamEna", vmmFamEna); | |
749 | DECLARE("vmmFamEnab", vmmFamEnab); | |
55e303ae | 750 | DECLARE("vmm64Bit", vmm64Bit); |
1c79356b A |
751 | |
752 | /* values from kern/task.h */ | |
1c79356b A |
753 | DECLARE("TASK_SYSCALLS_MACH", |
754 | offsetof(struct task *, syscalls_mach)); | |
9bccf70c A |
755 | DECLARE("TASK_SYSCALLS_UNIX", |
756 | offsetof(struct task *, syscalls_unix)); | |
1c79356b A |
757 | |
758 | /* values from vm/vm_map.h */ | |
759 | DECLARE("VMMAP_PMAP", offsetof(struct vm_map *, pmap)); | |
760 | ||
761 | /* values from machine/pmap.h */ | |
55e303ae A |
762 | DECLARE("pmapSpace", offsetof(struct pmap *, space)); |
763 | DECLARE("spaceNum", offsetof(struct pmap *, spaceNum)); | |
764 | DECLARE("pmapSXlk", offsetof(struct pmap *, pmapSXlk)); | |
765 | DECLARE("pmapCCtl", offsetof(struct pmap *, pmapCCtl)); | |
766 | DECLARE("pmapCCtlVal", pmapCCtlVal); | |
767 | DECLARE("pmapCCtlLck", pmapCCtlLck); | |
768 | DECLARE("pmapCCtlLckb", pmapCCtlLckb); | |
769 | DECLARE("pmapCCtlGen", pmapCCtlGen); | |
770 | DECLARE("pmapSegCacheCnt", pmapSegCacheCnt); | |
771 | DECLARE("pmapSegCacheUse", pmapSegCacheUse); | |
772 | DECLARE("pmapvr", offsetof(struct pmap *, pmapvr)); | |
773 | DECLARE("pmapFlags", offsetof(struct pmap *, pmapFlags)); | |
774 | DECLARE("pmapKeys", pmapKeys); | |
775 | DECLARE("pmapKeyDef", pmapKeyDef); | |
776 | DECLARE("pmapSCSubTag", offsetof(struct pmap *, pmapSCSubTag)); | |
777 | DECLARE("pmapSegCache", offsetof(struct pmap *, pmapSegCache)); | |
778 | DECLARE("pmapCurLists", offsetof(struct pmap *, pmapCurLists)); | |
779 | DECLARE("pmapRandNum", offsetof(struct pmap *, pmapRandNum)); | |
780 | DECLARE("pmapSkipLists", offsetof(struct pmap *, pmapSkipLists)); | |
781 | DECLARE("pmapSearchVisits", offsetof(struct pmap *, pmapSearchVisits)); | |
782 | DECLARE("pmapSearchCnt", offsetof(struct pmap *, pmapSearchCnt)); | |
783 | DECLARE("pmapSize", pmapSize); | |
784 | DECLARE("kSkipListFanoutShift", kSkipListFanoutShift); | |
785 | DECLARE("kSkipListMaxLists", kSkipListMaxLists); | |
786 | DECLARE("invalSpace", invalSpace); | |
787 | ||
788 | DECLARE("sgcESID", offsetof(struct sgc *, sgcESID)); | |
789 | DECLARE("sgcESmsk", sgcESmsk); | |
790 | DECLARE("sgcVSID", offsetof(struct sgc *, sgcVSID)); | |
791 | DECLARE("sgcVSmsk", sgcVSmsk); | |
792 | DECLARE("sgcVSKeys", sgcVSKeys); | |
793 | DECLARE("sgcVSKeyUsr", sgcVSKeyUsr); | |
794 | DECLARE("sgcVSNoEx", sgcVSNoEx); | |
795 | DECLARE("pmapPAddr", offsetof(struct pmapTransTab *, pmapPAddr)); | |
796 | DECLARE("pmapVAddr", offsetof(struct pmapTransTab *, pmapVAddr)); | |
797 | DECLARE("pmapTransSize", sizeof(pmapTransTab)); | |
798 | DECLARE("pmapResidentCnt", offsetof(struct pmap *, stats.resident_count)); | |
799 | ||
800 | DECLARE("maxAdrSp", maxAdrSp); | |
801 | DECLARE("maxAdrSpb", maxAdrSpb); | |
802 | ||
803 | /* values from kern/processor.h */ | |
804 | DECLARE("psthreads", offsetof(struct processor_set *, threads)); | |
805 | DECLARE("psthreadcnt", offsetof(struct processor_set *, thread_count)); | |
9bccf70c A |
806 | |
807 | /* values from kern/processor.h */ | |
808 | DECLARE("psthreads", offsetof(struct processor_set *, threads)); | |
809 | DECLARE("psthreadcnt", offsetof(struct processor_set *, thread_count)); | |
1c79356b A |
810 | |
811 | ||
812 | /* Constants from pmap.h */ | |
813 | DECLARE("PPC_SID_KERNEL", PPC_SID_KERNEL); | |
814 | ||
815 | /* values for accessing mach_trap table */ | |
816 | DECLARE("MACH_TRAP_OFFSET_POW2", 4); | |
817 | ||
818 | DECLARE("MACH_TRAP_ARGC", | |
819 | offsetof(mach_trap_t *, mach_trap_arg_count)); | |
820 | DECLARE("MACH_TRAP_FUNCTION", | |
821 | offsetof(mach_trap_t *, mach_trap_function)); | |
822 | ||
55e303ae | 823 | DECLARE("MACH_TRAP_TABLE_COUNT", MACH_TRAP_TABLE_COUNT); |
1c79356b | 824 | |
55e303ae | 825 | DECLARE("PPCcallmax", sizeof(PPCcalls)); |
de355530 | 826 | |
1c79356b A |
827 | /* Misc values used by assembler */ |
828 | DECLARE("AST_ALL", AST_ALL); | |
829 | DECLARE("AST_URGENT", AST_URGENT); | |
830 | ||
831 | /* Simple Lock structure */ | |
9bccf70c | 832 | DECLARE("SLOCK_ILK", offsetof(usimple_lock_t, interlock)); |
1c79356b | 833 | #if MACH_LDEBUG |
9bccf70c A |
834 | DECLARE("SLOCK_TYPE", offsetof(usimple_lock_t, lock_type)); |
835 | DECLARE("SLOCK_PC", offsetof(usimple_lock_t, debug.lock_pc)); | |
836 | DECLARE("SLOCK_THREAD", offsetof(usimple_lock_t, debug.lock_thread)); | |
837 | DECLARE("SLOCK_DURATIONH",offsetof(usimple_lock_t, debug.duration[0])); | |
838 | DECLARE("SLOCK_DURATIONL",offsetof(usimple_lock_t, debug.duration[1])); | |
1c79356b A |
839 | DECLARE("USLOCK_TAG", USLOCK_TAG); |
840 | #endif /* MACH_LDEBUG */ | |
841 | ||
842 | /* Mutex structure */ | |
0b4e3aa0 | 843 | DECLARE("LOCK_DATA", offsetof(mutex_t *, interlock)); |
1c79356b | 844 | DECLARE("MUTEX_WAITERS",offsetof(mutex_t *, waiters)); |
9bccf70c | 845 | DECLARE("MUTEX_PROMOTED_PRI",offsetof(mutex_t *, promoted_pri)); |
1c79356b A |
846 | #if MACH_LDEBUG |
847 | DECLARE("MUTEX_TYPE", offsetof(mutex_t *, type)); | |
848 | DECLARE("MUTEX_PC", offsetof(mutex_t *, pc)); | |
849 | DECLARE("MUTEX_THREAD", offsetof(mutex_t *, thread)); | |
850 | DECLARE("MUTEX_TAG", MUTEX_TAG); | |
851 | #endif /* MACH_LDEBUG */ | |
1c79356b A |
852 | |
853 | /* values from low_trace.h */ | |
854 | DECLARE("LTR_cpu", offsetof(struct LowTraceRecord *, LTR_cpu)); | |
855 | DECLARE("LTR_excpt", offsetof(struct LowTraceRecord *, LTR_excpt)); | |
856 | DECLARE("LTR_timeHi", offsetof(struct LowTraceRecord *, LTR_timeHi)); | |
857 | DECLARE("LTR_timeLo", offsetof(struct LowTraceRecord *, LTR_timeLo)); | |
858 | DECLARE("LTR_cr", offsetof(struct LowTraceRecord *, LTR_cr)); | |
859 | DECLARE("LTR_srr0", offsetof(struct LowTraceRecord *, LTR_srr0)); | |
860 | DECLARE("LTR_srr1", offsetof(struct LowTraceRecord *, LTR_srr1)); | |
861 | DECLARE("LTR_dar", offsetof(struct LowTraceRecord *, LTR_dar)); | |
55e303ae A |
862 | DECLARE("LTR_dsisr", offsetof(struct LowTraceRecord *, LTR_dsisr)); |
863 | DECLARE("LTR_rsvd0", offsetof(struct LowTraceRecord *, LTR_rsvd0)); | |
1c79356b A |
864 | DECLARE("LTR_save", offsetof(struct LowTraceRecord *, LTR_save)); |
865 | DECLARE("LTR_lr", offsetof(struct LowTraceRecord *, LTR_lr)); | |
866 | DECLARE("LTR_ctr", offsetof(struct LowTraceRecord *, LTR_ctr)); | |
867 | DECLARE("LTR_r0", offsetof(struct LowTraceRecord *, LTR_r0)); | |
868 | DECLARE("LTR_r1", offsetof(struct LowTraceRecord *, LTR_r1)); | |
869 | DECLARE("LTR_r2", offsetof(struct LowTraceRecord *, LTR_r2)); | |
870 | DECLARE("LTR_r3", offsetof(struct LowTraceRecord *, LTR_r3)); | |
871 | DECLARE("LTR_r4", offsetof(struct LowTraceRecord *, LTR_r4)); | |
872 | DECLARE("LTR_r5", offsetof(struct LowTraceRecord *, LTR_r5)); | |
55e303ae | 873 | DECLARE("LTR_r6", offsetof(struct LowTraceRecord *, LTR_r6)); |
1c79356b A |
874 | DECLARE("LTR_size", sizeof(struct LowTraceRecord)); |
875 | ||
876 | /* Values from pexpert.h */ | |
877 | DECLARE("PECFIcpurate", offsetof(struct clock_frequency_info_t *, cpu_clock_rate_hz)); | |
878 | DECLARE("PECFIbusrate", offsetof(struct clock_frequency_info_t *, bus_clock_rate_hz)); | |
879 | ||
880 | /* Values from pmap_internals.h and mappings.h */ | |
55e303ae A |
881 | |
882 | DECLARE("mpFlags", offsetof(struct mapping *, mpFlags)); | |
883 | DECLARE("mpBusy", mpBusy); | |
884 | DECLARE("mpPIndex", mpPIndex); | |
885 | DECLARE("mpSpecial", mpSpecial); | |
886 | DECLARE("mpSpecialb", mpSpecialb); | |
887 | DECLARE("mpFIP", mpFIP); | |
888 | DECLARE("mpFIPb", mpFIPb); | |
889 | DECLARE("mpRemovable", mpRemovable); | |
890 | DECLARE("mpRemovableb", mpRemovableb); | |
891 | DECLARE("mpNest", mpNest); | |
892 | DECLARE("mpNestb", mpNestb); | |
893 | DECLARE("mpPerm", mpPerm); | |
894 | DECLARE("mpPermb", mpPermb); | |
895 | DECLARE("mpBlock", mpBlock); | |
896 | DECLARE("mpBlockb", mpBlockb); | |
897 | DECLARE("mpRIP", mpRIP); | |
898 | DECLARE("mpRIPb", mpRIPb); | |
899 | DECLARE("mpRSVD1", mpRSVD1); | |
900 | DECLARE("mpLists", mpLists); | |
901 | DECLARE("mpListsb", mpListsb); | |
902 | ||
903 | DECLARE("mpSpace", offsetof(struct mapping *, mpSpace)); | |
904 | DECLARE("mpBSize", offsetof(struct mapping *, mpBSize)); | |
905 | DECLARE("mpPte", offsetof(struct mapping *, mpPte)); | |
906 | DECLARE("mpHValid", mpHValid); | |
907 | DECLARE("mpHValidb", mpHValidb); | |
908 | ||
909 | DECLARE("mpPAddr", offsetof(struct mapping *, mpPAddr)); | |
910 | DECLARE("mpVAddr", offsetof(struct mapping *, mpVAddr)); | |
911 | DECLARE("mpHWFlags", mpHWFlags); | |
912 | DECLARE("mpPP", mpPP); | |
913 | DECLARE("mpPPb", mpPPb); | |
914 | DECLARE("mpKKN", mpKKN); | |
915 | DECLARE("mpKKNb", mpKKNb); | |
916 | DECLARE("mpWIMG", mpWIMG); | |
917 | DECLARE("mpWIMGb", mpWIMGb); | |
918 | DECLARE("mpW", mpW); | |
919 | DECLARE("mpWb", mpWb); | |
920 | DECLARE("mpI", mpI); | |
921 | DECLARE("mpIb", mpIb); | |
922 | DECLARE("mpM", mpM); | |
923 | DECLARE("mpMb", mpMb); | |
924 | DECLARE("mpG", mpG); | |
925 | DECLARE("mpGb", mpGb); | |
926 | DECLARE("mpWIMGe", mpWIMGe); | |
927 | DECLARE("mpC", mpC); | |
928 | DECLARE("mpCb", mpCb); | |
929 | DECLARE("mpR", mpR); | |
930 | DECLARE("mpRb", mpRb); | |
931 | DECLARE("mpAlias", offsetof(struct mapping *, mpAlias)); | |
932 | DECLARE("mpNestReloc", offsetof(struct mapping *, mpNestReloc)); | |
933 | DECLARE("mpBlkRemCur", offsetof(struct mapping *, mpBlkRemCur)); | |
934 | DECLARE("mpList0", offsetof(struct mapping *, mpList0)); | |
935 | DECLARE("mpList ", offsetof(struct mapping *, mpList)); | |
936 | DECLARE("mpBasicSize", mpBasicSize); | |
937 | DECLARE("mpBasicLists", mpBasicLists); | |
938 | ||
1c79356b A |
939 | DECLARE("mbvrswap", offsetof(struct mappingblok *, mapblokvrswap)); |
940 | DECLARE("mbfree", offsetof(struct mappingblok *, mapblokfree)); | |
941 | DECLARE("mapcsize", sizeof(struct mappingctl)); | |
942 | ||
55e303ae A |
943 | DECLARE("ppLink", offsetof(struct phys_entry *, ppLink)); |
944 | DECLARE("ppLock", ppLock); | |
945 | DECLARE("ppN", ppN); | |
946 | DECLARE("ppFlags", ppFlags); | |
947 | DECLARE("ppI", ppI); | |
948 | DECLARE("ppIb", ppIb); | |
949 | DECLARE("ppG", ppG); | |
950 | DECLARE("ppGb", ppGb); | |
951 | DECLARE("ppR", ppR); | |
952 | DECLARE("ppRb", ppRb); | |
953 | DECLARE("ppC", ppC); | |
954 | DECLARE("ppCb", ppCb); | |
955 | DECLARE("ppPP", ppPP); | |
956 | DECLARE("ppPPb", ppPPb); | |
957 | DECLARE("ppPPe", ppPPe); | |
1c79356b | 958 | |
1c79356b A |
959 | DECLARE("PCAallo", offsetof(struct PCA *, flgs.PCAallo)); |
960 | DECLARE("PCAfree", offsetof(struct PCA *, flgs.PCAalflgs.PCAfree)); | |
961 | DECLARE("PCAauto", offsetof(struct PCA *, flgs.PCAalflgs.PCAauto)); | |
55e303ae A |
962 | DECLARE("PCAmisc", offsetof(struct PCA *, flgs.PCAalflgs.PCAmisc)); |
963 | DECLARE("PCAlock", PCAlock); | |
964 | DECLARE("PCAlockb", PCAlockb); | |
1c79356b | 965 | DECLARE("PCAsteal", offsetof(struct PCA *, flgs.PCAalflgs.PCAsteal)); |
1c79356b | 966 | |
55e303ae A |
967 | DECLARE("mrPhysTab", offsetof(struct mem_region *, mrPhysTab)); |
968 | DECLARE("mrStart", offsetof(struct mem_region *, mrStart)); | |
969 | DECLARE("mrEnd", offsetof(struct mem_region *, mrEnd)); | |
970 | DECLARE("mrAStart", offsetof(struct mem_region *, mrAStart)); | |
971 | DECLARE("mrAEnd", offsetof(struct mem_region *, mrAEnd)); | |
972 | DECLARE("mrSize", sizeof(struct mem_region)); | |
973 | ||
974 | DECLARE("mapRemChunk", mapRemChunk); | |
975 | ||
976 | DECLARE("mapRetCode", mapRetCode); | |
977 | DECLARE("mapRtOK", mapRtOK); | |
978 | DECLARE("mapRtBadLk", mapRtBadLk); | |
979 | DECLARE("mapRtPerm", mapRtPerm); | |
980 | DECLARE("mapRtNotFnd", mapRtNotFnd); | |
981 | DECLARE("mapRtBlock", mapRtBlock); | |
982 | DECLARE("mapRtNest", mapRtNest); | |
983 | DECLARE("mapRtRemove", mapRtRemove); | |
984 | DECLARE("mapRtMapDup", mapRtMapDup); | |
985 | ||
986 | #if 0 | |
9bccf70c A |
987 | DECLARE("MFpcaptr", offsetof(struct mappingflush *, pcaptr)); |
988 | DECLARE("MFmappingcnt", offsetof(struct mappingflush *, mappingcnt)); | |
989 | DECLARE("MFmapping", offsetof(struct mappingflush *, mapping)); | |
990 | DECLARE("MFmappingSize", sizeof(struct mfmapping)); | |
55e303ae | 991 | #endif |
1c79356b A |
992 | |
993 | #if 1 | |
994 | DECLARE("GDsave", offsetof(struct GDWorkArea *, GDsave)); | |
995 | DECLARE("GDfp0", offsetof(struct GDWorkArea *, GDfp0)); | |
996 | DECLARE("GDfp1", offsetof(struct GDWorkArea *, GDfp1)); | |
997 | DECLARE("GDfp2", offsetof(struct GDWorkArea *, GDfp2)); | |
998 | DECLARE("GDfp3", offsetof(struct GDWorkArea *, GDfp3)); | |
999 | DECLARE("GDtop", offsetof(struct GDWorkArea *, GDtop)); | |
1000 | DECLARE("GDleft", offsetof(struct GDWorkArea *, GDleft)); | |
1001 | DECLARE("GDtopleft", offsetof(struct GDWorkArea *, GDtopleft)); | |
1002 | DECLARE("GDrowbytes", offsetof(struct GDWorkArea *, GDrowbytes)); | |
1003 | DECLARE("GDrowchar", offsetof(struct GDWorkArea *, GDrowchar)); | |
1004 | DECLARE("GDdepth", offsetof(struct GDWorkArea *, GDdepth)); | |
1005 | DECLARE("GDcollgn", offsetof(struct GDWorkArea *, GDcollgn)); | |
1006 | DECLARE("GDready", offsetof(struct GDWorkArea *, GDready)); | |
1007 | DECLARE("GDrowbuf1", offsetof(struct GDWorkArea *, GDrowbuf1)); | |
1008 | DECLARE("GDrowbuf2", offsetof(struct GDWorkArea *, GDrowbuf2)); | |
1009 | #endif | |
1010 | ||
1c79356b A |
1011 | DECLARE("enaExpTrace", enaExpTrace); |
1012 | DECLARE("enaExpTraceb", enaExpTraceb); | |
1013 | DECLARE("enaUsrFCall", enaUsrFCall); | |
1014 | DECLARE("enaUsrFCallb", enaUsrFCallb); | |
1015 | DECLARE("enaUsrPhyMp", enaUsrPhyMp); | |
1016 | DECLARE("enaUsrPhyMpb", enaUsrPhyMpb); | |
1017 | DECLARE("enaDiagSCs", enaDiagSCs); | |
1018 | DECLARE("enaDiagSCsb", enaDiagSCsb); | |
9bccf70c A |
1019 | DECLARE("enaDiagEM", enaDiagEM); |
1020 | DECLARE("enaDiagEMb", enaDiagEMb); | |
55e303ae A |
1021 | DECLARE("enaNotifyEM", enaNotifyEM); |
1022 | DECLARE("enaNotifyEMb", enaNotifyEMb); | |
1c79356b A |
1023 | DECLARE("disLkType", disLkType); |
1024 | DECLARE("disLktypeb", disLktypeb); | |
1025 | DECLARE("disLkThread", disLkThread); | |
1026 | DECLARE("disLkThreadb", disLkThreadb); | |
1027 | DECLARE("disLkNmSimp", disLkNmSimp); | |
1028 | DECLARE("disLkNmSimpb", disLkNmSimpb); | |
1029 | DECLARE("disLkMyLck", disLkMyLck); | |
1030 | DECLARE("disLkMyLckb", disLkMyLckb); | |
1031 | DECLARE("dgMisc1", offsetof(struct diagWork *, dgMisc1)); | |
1032 | DECLARE("dgMisc2", offsetof(struct diagWork *, dgMisc2)); | |
1033 | DECLARE("dgMisc3", offsetof(struct diagWork *, dgMisc3)); | |
1034 | DECLARE("dgMisc4", offsetof(struct diagWork *, dgMisc4)); | |
1035 | DECLARE("dgMisc5", offsetof(struct diagWork *, dgMisc5)); | |
1036 | ||
9bccf70c A |
1037 | DECLARE("SACnext", offsetof(struct savearea_comm *, sac_next)); |
1038 | DECLARE("SACprev", offsetof(struct savearea_comm *, sac_prev)); | |
1039 | DECLARE("SACvrswap", offsetof(struct savearea_comm *, sac_vrswap)); | |
1040 | DECLARE("SACalloc", offsetof(struct savearea_comm *, sac_alloc)); | |
1041 | DECLARE("SACflags", offsetof(struct savearea_comm *, sac_flags)); | |
1042 | DECLARE("sac_cnt", sac_cnt); | |
1043 | DECLARE("sac_empty", sac_empty); | |
1044 | DECLARE("sac_perm", sac_perm); | |
1045 | DECLARE("sac_permb", sac_permb); | |
1046 | ||
1047 | DECLARE("LocalSaveTarget", LocalSaveTarget); | |
1048 | DECLARE("LocalSaveMin", LocalSaveMin); | |
1049 | DECLARE("LocalSaveMax", LocalSaveMax); | |
1050 | DECLARE("FreeListMin", FreeListMin); | |
1051 | DECLARE("SaveLowHysteresis", SaveLowHysteresis); | |
1052 | DECLARE("SaveHighHysteresis", SaveHighHysteresis); | |
1053 | DECLARE("InitialSaveAreas", InitialSaveAreas); | |
1054 | DECLARE("InitialSaveTarget", InitialSaveTarget); | |
1055 | DECLARE("InitialSaveBloks", InitialSaveBloks); | |
1056 | ||
1057 | DECLARE("SAVprev", offsetof(struct savearea_comm *, save_prev)); | |
1058 | DECLARE("SAVact", offsetof(struct savearea_comm *, save_act)); | |
1059 | DECLARE("SAVflags", offsetof(struct savearea_comm *, save_flags)); | |
1060 | DECLARE("SAVlevel", offsetof(struct savearea_comm *, save_level)); | |
1061 | DECLARE("SAVtime", offsetof(struct savearea_comm *, save_time)); | |
55e303ae A |
1062 | DECLARE("savemisc0", offsetof(struct savearea_comm *, save_misc0)); |
1063 | DECLARE("savemisc1", offsetof(struct savearea_comm *, save_misc1)); | |
1064 | DECLARE("savemisc2", offsetof(struct savearea_comm *, save_misc2)); | |
1065 | DECLARE("savemisc3", offsetof(struct savearea_comm *, save_misc3)); | |
1066 | ||
1c79356b | 1067 | DECLARE("SAVsize", sizeof(struct savearea)); |
9bccf70c A |
1068 | DECLARE("SAVsizefpu", sizeof(struct savearea_vec)); |
1069 | DECLARE("SAVsizevec", sizeof(struct savearea_fpu)); | |
1070 | DECLARE("SAVcommsize", sizeof(struct savearea_comm)); | |
55e303ae | 1071 | |
1c79356b A |
1072 | DECLARE("savesrr0", offsetof(struct savearea *, save_srr0)); |
1073 | DECLARE("savesrr1", offsetof(struct savearea *, save_srr1)); | |
1074 | DECLARE("savecr", offsetof(struct savearea *, save_cr)); | |
1075 | DECLARE("savexer", offsetof(struct savearea *, save_xer)); | |
1076 | DECLARE("savelr", offsetof(struct savearea *, save_lr)); | |
1077 | DECLARE("savectr", offsetof(struct savearea *, save_ctr)); | |
1c79356b A |
1078 | DECLARE("savedar", offsetof(struct savearea *, save_dar)); |
1079 | DECLARE("savedsisr", offsetof(struct savearea *, save_dsisr)); | |
1080 | DECLARE("saveexception", offsetof(struct savearea *, save_exception)); | |
9bccf70c A |
1081 | DECLARE("savefpscrpad", offsetof(struct savearea *, save_fpscrpad)); |
1082 | DECLARE("savefpscr", offsetof(struct savearea *, save_fpscr)); | |
1c79356b | 1083 | DECLARE("savevrsave", offsetof(struct savearea *, save_vrsave)); |
9bccf70c | 1084 | DECLARE("savevscr", offsetof(struct savearea *, save_vscr)); |
1c79356b | 1085 | |
55e303ae A |
1086 | DECLARE("savemmcr0", offsetof(struct savearea *, save_mmcr0)); |
1087 | DECLARE("savemmcr1", offsetof(struct savearea *, save_mmcr1)); | |
1088 | DECLARE("savemmcr2", offsetof(struct savearea *, save_mmcr2)); | |
1089 | DECLARE("savepmc", offsetof(struct savearea *, save_pmc)); | |
1090 | ||
1091 | DECLARE("saveinstr", offsetof(struct savearea *, save_instr)); | |
1092 | ||
e5568f75 A |
1093 | DECLARE("savexdat0", offsetof(struct savearea *, save_xdat0)); |
1094 | DECLARE("savexdat1", offsetof(struct savearea *, save_xdat1)); | |
1095 | DECLARE("savexdat2", offsetof(struct savearea *, save_xdat2)); | |
1096 | DECLARE("savexdat3", offsetof(struct savearea *, save_xdat3)); | |
1097 | ||
1c79356b A |
1098 | DECLARE("saver0", offsetof(struct savearea *, save_r0)); |
1099 | DECLARE("saver1", offsetof(struct savearea *, save_r1)); | |
1100 | DECLARE("saver2", offsetof(struct savearea *, save_r2)); | |
1101 | DECLARE("saver3", offsetof(struct savearea *, save_r3)); | |
1102 | DECLARE("saver4", offsetof(struct savearea *, save_r4)); | |
1103 | DECLARE("saver5", offsetof(struct savearea *, save_r5)); | |
1104 | DECLARE("saver6", offsetof(struct savearea *, save_r6)); | |
1105 | DECLARE("saver7", offsetof(struct savearea *, save_r7)); | |
1106 | DECLARE("saver8", offsetof(struct savearea *, save_r8)); | |
1107 | DECLARE("saver9", offsetof(struct savearea *, save_r9)); | |
1108 | DECLARE("saver10", offsetof(struct savearea *, save_r10)); | |
1109 | DECLARE("saver11", offsetof(struct savearea *, save_r11)); | |
1110 | DECLARE("saver12", offsetof(struct savearea *, save_r12)); | |
1111 | DECLARE("saver13", offsetof(struct savearea *, save_r13)); | |
1112 | DECLARE("saver14", offsetof(struct savearea *, save_r14)); | |
1113 | DECLARE("saver15", offsetof(struct savearea *, save_r15)); | |
1114 | DECLARE("saver16", offsetof(struct savearea *, save_r16)); | |
1115 | DECLARE("saver17", offsetof(struct savearea *, save_r17)); | |
1116 | DECLARE("saver18", offsetof(struct savearea *, save_r18)); | |
1117 | DECLARE("saver19", offsetof(struct savearea *, save_r19)); | |
1118 | DECLARE("saver20", offsetof(struct savearea *, save_r20)); | |
1119 | DECLARE("saver21", offsetof(struct savearea *, save_r21)); | |
1120 | DECLARE("saver22", offsetof(struct savearea *, save_r22)); | |
1121 | DECLARE("saver23", offsetof(struct savearea *, save_r23)); | |
1122 | DECLARE("saver24", offsetof(struct savearea *, save_r24)); | |
1123 | DECLARE("saver25", offsetof(struct savearea *, save_r25)); | |
1124 | DECLARE("saver26", offsetof(struct savearea *, save_r26)); | |
1125 | DECLARE("saver27", offsetof(struct savearea *, save_r27)); | |
1126 | DECLARE("saver28", offsetof(struct savearea *, save_r28)); | |
1127 | DECLARE("saver29", offsetof(struct savearea *, save_r29)); | |
1128 | DECLARE("saver30", offsetof(struct savearea *, save_r30)); | |
1129 | DECLARE("saver31", offsetof(struct savearea *, save_r31)); | |
1130 | ||
9bccf70c A |
1131 | DECLARE("savefp0", offsetof(struct savearea_fpu *, save_fp0)); |
1132 | DECLARE("savefp1", offsetof(struct savearea_fpu *, save_fp1)); | |
1133 | DECLARE("savefp2", offsetof(struct savearea_fpu *, save_fp2)); | |
1134 | DECLARE("savefp3", offsetof(struct savearea_fpu *, save_fp3)); | |
1135 | DECLARE("savefp4", offsetof(struct savearea_fpu *, save_fp4)); | |
1136 | DECLARE("savefp5", offsetof(struct savearea_fpu *, save_fp5)); | |
1137 | DECLARE("savefp6", offsetof(struct savearea_fpu *, save_fp6)); | |
1138 | DECLARE("savefp7", offsetof(struct savearea_fpu *, save_fp7)); | |
1139 | DECLARE("savefp8", offsetof(struct savearea_fpu *, save_fp8)); | |
1140 | DECLARE("savefp9", offsetof(struct savearea_fpu *, save_fp9)); | |
1141 | DECLARE("savefp10", offsetof(struct savearea_fpu *, save_fp10)); | |
1142 | DECLARE("savefp11", offsetof(struct savearea_fpu *, save_fp11)); | |
1143 | DECLARE("savefp12", offsetof(struct savearea_fpu *, save_fp12)); | |
1144 | DECLARE("savefp13", offsetof(struct savearea_fpu *, save_fp13)); | |
1145 | DECLARE("savefp14", offsetof(struct savearea_fpu *, save_fp14)); | |
1146 | DECLARE("savefp15", offsetof(struct savearea_fpu *, save_fp15)); | |
1147 | DECLARE("savefp16", offsetof(struct savearea_fpu *, save_fp16)); | |
1148 | DECLARE("savefp17", offsetof(struct savearea_fpu *, save_fp17)); | |
1149 | DECLARE("savefp18", offsetof(struct savearea_fpu *, save_fp18)); | |
1150 | DECLARE("savefp19", offsetof(struct savearea_fpu *, save_fp19)); | |
1151 | DECLARE("savefp20", offsetof(struct savearea_fpu *, save_fp20)); | |
1152 | DECLARE("savefp21", offsetof(struct savearea_fpu *, save_fp21)); | |
1153 | DECLARE("savefp22", offsetof(struct savearea_fpu *, save_fp22)); | |
1154 | DECLARE("savefp23", offsetof(struct savearea_fpu *, save_fp23)); | |
1155 | DECLARE("savefp24", offsetof(struct savearea_fpu *, save_fp24)); | |
1156 | DECLARE("savefp25", offsetof(struct savearea_fpu *, save_fp25)); | |
1157 | DECLARE("savefp26", offsetof(struct savearea_fpu *, save_fp26)); | |
1158 | DECLARE("savefp27", offsetof(struct savearea_fpu *, save_fp27)); | |
1159 | DECLARE("savefp28", offsetof(struct savearea_fpu *, save_fp28)); | |
1160 | DECLARE("savefp29", offsetof(struct savearea_fpu *, save_fp29)); | |
1161 | DECLARE("savefp30", offsetof(struct savearea_fpu *, save_fp30)); | |
1162 | DECLARE("savefp31", offsetof(struct savearea_fpu *, save_fp31)); | |
1c79356b | 1163 | |
9bccf70c A |
1164 | DECLARE("savevr0", offsetof(struct savearea_vec *, save_vr0)); |
1165 | DECLARE("savevr1", offsetof(struct savearea_vec *, save_vr1)); | |
1166 | DECLARE("savevr2", offsetof(struct savearea_vec *, save_vr2)); | |
1167 | DECLARE("savevr3", offsetof(struct savearea_vec *, save_vr3)); | |
1168 | DECLARE("savevr4", offsetof(struct savearea_vec *, save_vr4)); | |
1169 | DECLARE("savevr5", offsetof(struct savearea_vec *, save_vr5)); | |
1170 | DECLARE("savevr6", offsetof(struct savearea_vec *, save_vr6)); | |
1171 | DECLARE("savevr7", offsetof(struct savearea_vec *, save_vr7)); | |
1172 | DECLARE("savevr8", offsetof(struct savearea_vec *, save_vr8)); | |
1173 | DECLARE("savevr9", offsetof(struct savearea_vec *, save_vr9)); | |
1174 | DECLARE("savevr10", offsetof(struct savearea_vec *, save_vr10)); | |
1175 | DECLARE("savevr11", offsetof(struct savearea_vec *, save_vr11)); | |
1176 | DECLARE("savevr12", offsetof(struct savearea_vec *, save_vr12)); | |
1177 | DECLARE("savevr13", offsetof(struct savearea_vec *, save_vr13)); | |
1178 | DECLARE("savevr14", offsetof(struct savearea_vec *, save_vr14)); | |
1179 | DECLARE("savevr15", offsetof(struct savearea_vec *, save_vr15)); | |
1180 | DECLARE("savevr16", offsetof(struct savearea_vec *, save_vr16)); | |
1181 | DECLARE("savevr17", offsetof(struct savearea_vec *, save_vr17)); | |
1182 | DECLARE("savevr18", offsetof(struct savearea_vec *, save_vr18)); | |
1183 | DECLARE("savevr19", offsetof(struct savearea_vec *, save_vr19)); | |
1184 | DECLARE("savevr20", offsetof(struct savearea_vec *, save_vr20)); | |
1185 | DECLARE("savevr21", offsetof(struct savearea_vec *, save_vr21)); | |
1186 | DECLARE("savevr22", offsetof(struct savearea_vec *, save_vr22)); | |
1187 | DECLARE("savevr23", offsetof(struct savearea_vec *, save_vr23)); | |
1188 | DECLARE("savevr24", offsetof(struct savearea_vec *, save_vr24)); | |
1189 | DECLARE("savevr25", offsetof(struct savearea_vec *, save_vr25)); | |
1190 | DECLARE("savevr26", offsetof(struct savearea_vec *, save_vr26)); | |
1191 | DECLARE("savevr27", offsetof(struct savearea_vec *, save_vr27)); | |
1192 | DECLARE("savevr28", offsetof(struct savearea_vec *, save_vr28)); | |
1193 | DECLARE("savevr29", offsetof(struct savearea_vec *, save_vr29)); | |
1194 | DECLARE("savevr30", offsetof(struct savearea_vec *, save_vr30)); | |
1195 | DECLARE("savevr31", offsetof(struct savearea_vec *, save_vr31)); | |
1196 | DECLARE("savevrvalid", offsetof(struct savearea_vec *, save_vrvalid)); | |
1c79356b A |
1197 | |
1198 | /* PseudoKernel Exception Descriptor info */ | |
1199 | DECLARE("BEDA_SRR0", offsetof(BEDA_t *, srr0)); | |
1200 | DECLARE("BEDA_SRR1", offsetof(BEDA_t *, srr1)); | |
1201 | DECLARE("BEDA_SPRG0", offsetof(BEDA_t *, sprg0)); | |
1202 | DECLARE("BEDA_SPRG1", offsetof(BEDA_t *, sprg1)); | |
1203 | ||
1204 | /* PseudoKernel Interrupt Control Word */ | |
1205 | DECLARE("BTTD_INTCONTROLWORD", offsetof(BTTD_t *, InterruptControlWord)); | |
1206 | ||
1207 | /* New state when exiting the pseudokernel */ | |
1208 | DECLARE("BTTD_NEWEXITSTATE", offsetof(BTTD_t *, NewExitState)); | |
1209 | ||
1210 | /* PseudoKernel Test/Post Interrupt */ | |
1211 | DECLARE("BTTD_TESTINTMASK", offsetof(BTTD_t *, testIntMask)); | |
1212 | DECLARE("BTTD_POSTINTMASK", offsetof(BTTD_t *, postIntMask)); | |
1213 | ||
1214 | /* PseudoKernel Vectors */ | |
1215 | DECLARE("BTTD_TRAP_VECTOR", offsetof(BTTD_t *, TrapVector)); | |
1216 | DECLARE("BTTD_SYSCALL_VECTOR", offsetof(BTTD_t *, SysCallVector)); | |
1217 | DECLARE("BTTD_INTERRUPT_VECTOR", offsetof(BTTD_t *, InterruptVector)); | |
1218 | DECLARE("BTTD_PENDINGINT_VECTOR", offsetof(BTTD_t *, PendingIntVector)); | |
1219 | ||
1220 | /* PseudoKernel Bits, Masks and misc */ | |
1221 | DECLARE("SYSCONTEXTSTATE", kInSystemContext); | |
1222 | DECLARE("PSEUDOKERNELSTATE", kInPseudoKernel); | |
1223 | DECLARE("INTSTATEMASK_B", 12); | |
1224 | DECLARE("INTSTATEMASK_E", 15); | |
1225 | DECLARE("INTCR2MASK_B", 8); | |
1226 | DECLARE("INTCR2MASK_E", 11); | |
1227 | DECLARE("INTBACKUPCR2MASK_B", 28); | |
1228 | DECLARE("INTBACKUPCR2MASK_E", 31); | |
1229 | DECLARE("INTCR2TOBACKUPSHIFT", kCR2ToBackupShift); | |
1230 | DECLARE("BB_MAX_TRAP", bbMaxTrap); | |
1231 | DECLARE("BB_RFI_TRAP", bbRFITrap); | |
1232 | ||
1233 | /* Various hackery */ | |
1234 | DECLARE("procState", offsetof(struct processor *, state)); | |
1235 | ||
1236 | DECLARE("CPU_SUBTYPE_POWERPC_ALL", CPU_SUBTYPE_POWERPC_ALL); | |
1c79356b A |
1237 | DECLARE("CPU_SUBTYPE_POWERPC_750", CPU_SUBTYPE_POWERPC_750); |
1238 | DECLARE("CPU_SUBTYPE_POWERPC_7400", CPU_SUBTYPE_POWERPC_7400); | |
1239 | DECLARE("CPU_SUBTYPE_POWERPC_7450", CPU_SUBTYPE_POWERPC_7450); | |
55e303ae | 1240 | DECLARE("CPU_SUBTYPE_POWERPC_970", CPU_SUBTYPE_POWERPC_970); |
1c79356b | 1241 | |
d52fe63f A |
1242 | DECLARE("shdIBAT", offsetof(struct shadowBAT *, IBATs)); |
1243 | DECLARE("shdDBAT", offsetof(struct shadowBAT *, DBATs)); | |
1c79356b | 1244 | |
55e303ae A |
1245 | /* Low Memory Globals */ |
1246 | ||
1247 | DECLARE("lgVerCode", offsetof(struct lowglo *, lgVerCode)); | |
1248 | DECLARE("lgPPStart", offsetof(struct lowglo *, lgPPStart)); | |
1249 | DECLARE("trcWork", offsetof(struct lowglo *, lgTrcWork)); | |
1250 | DECLARE("traceMask", offsetof(struct lowglo *, lgTrcWork.traceMask)); | |
1251 | DECLARE("traceCurr", offsetof(struct lowglo *, lgTrcWork.traceCurr)); | |
1252 | DECLARE("traceStart", offsetof(struct lowglo *, lgTrcWork.traceStart)); | |
1253 | DECLARE("traceEnd", offsetof(struct lowglo *, lgTrcWork.traceEnd)); | |
1254 | DECLARE("traceMsnd", offsetof(struct lowglo *, lgTrcWork.traceMsnd)); | |
1255 | ||
1256 | DECLARE("Zero", offsetof(struct lowglo *, lgZero)); | |
1257 | DECLARE("saveanchor", offsetof(struct lowglo *, lgSaveanchor)); | |
1258 | ||
1259 | DECLARE("SVlock", offsetof(struct lowglo *, lgSaveanchor.savelock)); | |
1260 | DECLARE("SVpoolfwd", offsetof(struct lowglo *, lgSaveanchor.savepoolfwd)); | |
1261 | DECLARE("SVpoolbwd", offsetof(struct lowglo *, lgSaveanchor.savepoolbwd)); | |
1262 | DECLARE("SVfree", offsetof(struct lowglo *, lgSaveanchor.savefree)); | |
1263 | DECLARE("SVfreecnt", offsetof(struct lowglo *, lgSaveanchor.savefreecnt)); | |
1264 | DECLARE("SVadjust", offsetof(struct lowglo *, lgSaveanchor.saveadjust)); | |
1265 | DECLARE("SVinuse", offsetof(struct lowglo *, lgSaveanchor.saveinuse)); | |
1266 | DECLARE("SVtarget", offsetof(struct lowglo *, lgSaveanchor.savetarget)); | |
1267 | DECLARE("SVsize", sizeof(struct Saveanchor)); | |
1268 | ||
1269 | DECLARE("tlbieLock", offsetof(struct lowglo *, lgTlbieLck)); | |
1270 | ||
1271 | DECLARE("dgFlags", offsetof(struct lowglo *, lgdgWork.dgFlags)); | |
1272 | DECLARE("dgLock", offsetof(struct lowglo *, lgdgWork.dgLock)); | |
1273 | DECLARE("dgMisc0", offsetof(struct lowglo *, lgdgWork.dgMisc0)); | |
de355530 | 1274 | |
55e303ae A |
1275 | DECLARE("lgKillResv", offsetof(struct lowglo *, lgKillResv)); |
1276 | ||
1277 | DECLARE("scomcpu", offsetof(struct scomcomm *, scomcpu)); | |
1278 | DECLARE("scomfunc", offsetof(struct scomcomm *, scomfunc)); | |
1279 | DECLARE("scomreg", offsetof(struct scomcomm *, scomreg)); | |
1280 | DECLARE("scomstat", offsetof(struct scomcomm *, scomstat)); | |
1281 | DECLARE("scomdata", offsetof(struct scomcomm *, scomdata)); | |
de355530 | 1282 | |
55e303ae | 1283 | return(0); /* For ANSI C :-) */ |
1c79356b | 1284 | } |