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