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