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