- DECLARE("dgLock", offsetof(struct diagWork *, dgLock));
- DECLARE("dgFlags", offsetof(struct diagWork *, dgFlags));
- DECLARE("dgMisc1", offsetof(struct diagWork *, dgMisc1));
- DECLARE("dgMisc2", offsetof(struct diagWork *, dgMisc2));
- DECLARE("dgMisc3", offsetof(struct diagWork *, dgMisc3));
- DECLARE("dgMisc4", offsetof(struct diagWork *, dgMisc4));
- DECLARE("dgMisc5", offsetof(struct diagWork *, dgMisc5));
-
- DECLARE("INTEL_PTE_KERNEL", INTEL_PTE_VALID|INTEL_PTE_WRITE);
- DECLARE("PDESHIFT", PDESHIFT);
- DECLARE("PDESIZE", PDESIZE);
- DECLARE("PTESIZE", PTESIZE);
-#ifdef __i386__
- DECLARE("PTDPTDI", PTDPTDI);
- DECLARE("APTDPTDI", APTDPTDI);
- DECLARE("HIGH_MEM_BASE", HIGH_MEM_BASE);
- DECLARE("HIGH_IDT_BASE", pmap_index_to_virt(HIGH_FIXED_IDT));
-#endif
-
- DECLARE("KERNELBASEPDE",
- (LINEAR_KERNEL_ADDRESS >> PDESHIFT) *
- sizeof(pt_entry_t));
-
- DECLARE("TSS_ESP0", offsetof(struct i386_tss *, esp0));
- DECLARE("TSS_SS0", offsetof(struct i386_tss *, ss0));
- DECLARE("TSS_LDT", offsetof(struct i386_tss *, ldt));
- DECLARE("TSS_PDBR", offsetof(struct i386_tss *, cr3));
- DECLARE("TSS_LINK", offsetof(struct i386_tss *, back_link));
+ DECLARE("dgLock", offsetof(struct diagWork, dgLock));
+ DECLARE("dgFlags", offsetof(struct diagWork, dgFlags));
+ DECLARE("dgMisc1", offsetof(struct diagWork, dgMisc1));
+ DECLARE("dgMisc2", offsetof(struct diagWork, dgMisc2));
+ DECLARE("dgMisc3", offsetof(struct diagWork, dgMisc3));
+ DECLARE("dgMisc4", offsetof(struct diagWork, dgMisc4));
+ DECLARE("dgMisc5", offsetof(struct diagWork, dgMisc5));
+
+ DECLARE("TSS_ESP0", offsetof(struct i386_tss, esp0));
+ DECLARE("TSS_SS0", offsetof(struct i386_tss, ss0));
+ DECLARE("TSS_LDT", offsetof(struct i386_tss, ldt));
+ DECLARE("TSS_PDBR", offsetof(struct i386_tss, cr3));
+ DECLARE("TSS_LINK", offsetof(struct i386_tss, back_link));