ia64/xen-unstable

view xen/arch/ia64/asm-offsets.c @ 6552:a9873d384da4

Merge.
author adsharma@los-vmm.sc.intel.com
date Thu Aug 25 12:24:48 2005 -0700 (2005-08-25)
parents 112d44270733 fa0754a9f64f
children dfaf788ab18c
line source
1 /*
2 * Generate definitions needed by assembly language modules.
3 * This code generates raw asm output which is post-processed
4 * to extract and format the required data.
5 */
7 #include <xen/config.h>
8 #include <xen/sched.h>
9 #include <asm/processor.h>
10 #include <asm/ptrace.h>
11 #include <public/xen.h>
12 #ifdef CONFIG_VTI
13 #include <asm/tlb.h>
14 #include <asm/regs.h>
15 #endif // CONFIG_VTI
17 #define task_struct vcpu
19 #define DEFINE(sym, val) \
20 asm volatile("\n->" #sym " %0 " #val : : "i" (val))
22 #define BLANK() asm volatile("\n->" : : )
24 #define OFFSET(_sym, _str, _mem) \
25 DEFINE(_sym, offsetof(_str, _mem));
27 void foo(void)
28 {
29 DEFINE(IA64_TASK_SIZE, sizeof (struct task_struct));
30 DEFINE(IA64_THREAD_INFO_SIZE, sizeof (struct thread_info));
31 DEFINE(IA64_PT_REGS_SIZE, sizeof (struct pt_regs));
32 DEFINE(IA64_SWITCH_STACK_SIZE, sizeof (struct switch_stack));
33 //DEFINE(IA64_SIGINFO_SIZE, sizeof (struct siginfo));
34 DEFINE(IA64_CPU_SIZE, sizeof (struct cpuinfo_ia64));
35 //DEFINE(SIGFRAME_SIZE, sizeof (struct sigframe));
36 DEFINE(UNW_FRAME_INFO_SIZE, sizeof (struct unw_frame_info));
38 BLANK();
40 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags));
41 DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count));
43 BLANK();
45 DEFINE(XSI_PSR_IC_OFS, offsetof(mapped_regs_t, interrupt_collection_enabled));
46 DEFINE(XSI_PSR_IC, (SHARED_ARCHINFO_ADDR+offsetof(mapped_regs_t, interrupt_collection_enabled)));
47 DEFINE(XSI_PSR_I_OFS, offsetof(mapped_regs_t, interrupt_delivery_enabled));
48 DEFINE(XSI_IIP_OFS, offsetof(mapped_regs_t, iip));
49 DEFINE(XSI_IIP, (SHARED_ARCHINFO_ADDR+offsetof(mapped_regs_t, iip)));
50 DEFINE(XSI_IFA_OFS, offsetof(mapped_regs_t, ifa));
51 DEFINE(XSI_IFA, (SHARED_ARCHINFO_ADDR+offsetof(mapped_regs_t, ifa)));
52 DEFINE(XSI_ITIR_OFS, offsetof(mapped_regs_t, itir));
53 DEFINE(XSI_ITIR, (SHARED_ARCHINFO_ADDR+offsetof(mapped_regs_t, itir)));
55 DEFINE(XSI_IPSR, (SHARED_ARCHINFO_ADDR+offsetof(mapped_regs_t, ipsr)));
56 DEFINE(XSI_IPSR_OFS, offsetof(mapped_regs_t, ipsr));
57 DEFINE(XSI_IFS_OFS, offsetof(mapped_regs_t, ifs));
58 DEFINE(XSI_IFS, (SHARED_ARCHINFO_ADDR+offsetof(mapped_regs_t, ifs)));
59 DEFINE(XSI_ISR_OFS, offsetof(mapped_regs_t, isr));
60 DEFINE(XSI_IIM_OFS, offsetof(mapped_regs_t, iim));
61 DEFINE(XSI_BANKNUM_OFS, offsetof(mapped_regs_t, banknum));
62 DEFINE(XSI_BANK0_OFS, offsetof(mapped_regs_t, bank0_regs[0]));
63 DEFINE(XSI_BANK1_OFS, offsetof(mapped_regs_t, bank1_regs[0]));
64 DEFINE(XSI_RR0_OFS, offsetof(mapped_regs_t, rrs[0]));
65 DEFINE(XSI_METAPHYS_OFS, offsetof(mapped_regs_t, metaphysical_mode));
66 DEFINE(XSI_PRECOVER_IFS_OFS, offsetof(mapped_regs_t, precover_ifs));
67 DEFINE(XSI_INCOMPL_REG_OFS, offsetof(mapped_regs_t, incomplete_regframe));
68 DEFINE(XSI_PEND_OFS, offsetof(mapped_regs_t, pending_interruption));
69 DEFINE(XSI_RR0_OFS, offsetof(mapped_regs_t, rrs[0]));
70 DEFINE(XSI_TPR_OFS, offsetof(mapped_regs_t, tpr));
71 DEFINE(XSI_PTA_OFS, offsetof(mapped_regs_t, pta));
72 DEFINE(XSI_ITV_OFS, offsetof(mapped_regs_t, itv));
73 //DEFINE(IA64_TASK_BLOCKED_OFFSET,offsetof (struct task_struct, blocked));
74 //DEFINE(IA64_TASK_CLEAR_CHILD_TID_OFFSET,offsetof (struct task_struct, clear_child_tid));
75 //DEFINE(IA64_TASK_GROUP_LEADER_OFFSET, offsetof (struct task_struct, group_leader));
76 //DEFINE(IA64_TASK_PENDING_OFFSET,offsetof (struct task_struct, pending));
77 //DEFINE(IA64_TASK_PID_OFFSET, offsetof (struct task_struct, pid));
78 //DEFINE(IA64_TASK_REAL_PARENT_OFFSET, offsetof (struct task_struct, real_parent));
79 //DEFINE(IA64_TASK_SIGHAND_OFFSET,offsetof (struct task_struct, sighand));
80 //DEFINE(IA64_TASK_SIGNAL_OFFSET,offsetof (struct task_struct, signal));
81 //DEFINE(IA64_TASK_TGID_OFFSET, offsetof (struct task_struct, tgid));
82 DEFINE(IA64_TASK_THREAD_KSP_OFFSET, offsetof (struct vcpu, arch._thread.ksp));
83 DEFINE(IA64_TASK_THREAD_ON_USTACK_OFFSET, offsetof (struct vcpu, arch._thread.on_ustack));
85 DEFINE(IA64_VCPU_META_RR0_OFFSET, offsetof (struct vcpu, arch.metaphysical_rr0));
86 DEFINE(IA64_VCPU_META_SAVED_RR0_OFFSET, offsetof (struct vcpu, arch.metaphysical_saved_rr0));
87 DEFINE(IA64_VCPU_BREAKIMM_OFFSET, offsetof (struct vcpu, arch.breakimm));
88 DEFINE(IA64_VCPU_IVA_OFFSET, offsetof (struct vcpu, arch.iva));
89 DEFINE(IA64_VCPU_IRR0_OFFSET, offsetof (struct vcpu, arch.irr[0]));
90 DEFINE(IA64_VCPU_IRR3_OFFSET, offsetof (struct vcpu, arch.irr[3]));
91 DEFINE(IA64_VCPU_INSVC3_OFFSET, offsetof (struct vcpu, arch.insvc[3]));
92 DEFINE(IA64_VCPU_STARTING_RID_OFFSET, offsetof (struct vcpu, arch.starting_rid));
93 DEFINE(IA64_VCPU_ENDING_RID_OFFSET, offsetof (struct vcpu, arch.ending_rid));
94 DEFINE(IA64_VCPU_DOMAIN_ITM_OFFSET, offsetof (struct vcpu, arch.domain_itm));
95 DEFINE(IA64_VCPU_DOMAIN_ITM_LAST_OFFSET, offsetof (struct vcpu, arch.domain_itm_last));
96 DEFINE(IA64_VCPU_ITLB_OFFSET, offsetof (struct vcpu, arch.itlb));
97 DEFINE(IA64_VCPU_DTLB_OFFSET, offsetof (struct vcpu, arch.dtlb));
99 BLANK();
100 DEFINE(IA64_CPUINFO_ITM_NEXT_OFFSET, offsetof (struct cpuinfo_ia64, itm_next));
101 DEFINE(IA64_CPUINFO_KSOFTIRQD_OFFSET, offsetof (struct cpuinfo_ia64, ksoftirqd));
103 //DEFINE(IA64_SIGHAND_SIGLOCK_OFFSET,offsetof (struct sighand_struct, siglock));
105 BLANK();
107 //DEFINE(IA64_SIGNAL_GROUP_STOP_COUNT_OFFSET,offsetof (struct signal_struct,
108 //group_stop_count));
109 //DEFINE(IA64_SIGNAL_SHARED_PENDING_OFFSET,offsetof (struct signal_struct, shared_pending));
111 BLANK();
113 DEFINE(IA64_PT_REGS_B6_OFFSET, offsetof (struct pt_regs, b6));
114 DEFINE(IA64_PT_REGS_B7_OFFSET, offsetof (struct pt_regs, b7));
115 DEFINE(IA64_PT_REGS_AR_CSD_OFFSET, offsetof (struct pt_regs, ar_csd));
116 DEFINE(IA64_PT_REGS_AR_SSD_OFFSET, offsetof (struct pt_regs, ar_ssd));
117 DEFINE(IA64_PT_REGS_R8_OFFSET, offsetof (struct pt_regs, r8));
118 DEFINE(IA64_PT_REGS_R9_OFFSET, offsetof (struct pt_regs, r9));
119 DEFINE(IA64_PT_REGS_R10_OFFSET, offsetof (struct pt_regs, r10));
120 DEFINE(IA64_PT_REGS_R11_OFFSET, offsetof (struct pt_regs, r11));
121 DEFINE(IA64_PT_REGS_CR_IPSR_OFFSET, offsetof (struct pt_regs, cr_ipsr));
122 DEFINE(IA64_PT_REGS_CR_IIP_OFFSET, offsetof (struct pt_regs, cr_iip));
123 DEFINE(IA64_PT_REGS_CR_IFS_OFFSET, offsetof (struct pt_regs, cr_ifs));
124 DEFINE(IA64_PT_REGS_AR_UNAT_OFFSET, offsetof (struct pt_regs, ar_unat));
125 DEFINE(IA64_PT_REGS_AR_PFS_OFFSET, offsetof (struct pt_regs, ar_pfs));
126 DEFINE(IA64_PT_REGS_AR_RSC_OFFSET, offsetof (struct pt_regs, ar_rsc));
127 DEFINE(IA64_PT_REGS_AR_RNAT_OFFSET, offsetof (struct pt_regs, ar_rnat));
129 DEFINE(IA64_PT_REGS_AR_BSPSTORE_OFFSET, offsetof (struct pt_regs, ar_bspstore));
130 DEFINE(IA64_PT_REGS_PR_OFFSET, offsetof (struct pt_regs, pr));
131 DEFINE(IA64_PT_REGS_B0_OFFSET, offsetof (struct pt_regs, b0));
132 DEFINE(IA64_PT_REGS_LOADRS_OFFSET, offsetof (struct pt_regs, loadrs));
133 DEFINE(IA64_PT_REGS_R1_OFFSET, offsetof (struct pt_regs, r1));
134 DEFINE(IA64_PT_REGS_R12_OFFSET, offsetof (struct pt_regs, r12));
135 DEFINE(IA64_PT_REGS_R13_OFFSET, offsetof (struct pt_regs, r13));
136 DEFINE(IA64_PT_REGS_AR_FPSR_OFFSET, offsetof (struct pt_regs, ar_fpsr));
137 DEFINE(IA64_PT_REGS_R15_OFFSET, offsetof (struct pt_regs, r15));
138 DEFINE(IA64_PT_REGS_R14_OFFSET, offsetof (struct pt_regs, r14));
139 DEFINE(IA64_PT_REGS_R2_OFFSET, offsetof (struct pt_regs, r2));
140 DEFINE(IA64_PT_REGS_R3_OFFSET, offsetof (struct pt_regs, r3));
141 #ifdef CONFIG_VTI
142 DEFINE(IA64_PT_REGS_R4_OFFSET, offsetof (struct pt_regs, r4));
143 DEFINE(IA64_PT_REGS_R5_OFFSET, offsetof (struct pt_regs, r5));
144 DEFINE(IA64_PT_REGS_R6_OFFSET, offsetof (struct pt_regs, r6));
145 DEFINE(IA64_PT_REGS_R7_OFFSET, offsetof (struct pt_regs, r7));
146 DEFINE(IA64_PT_REGS_CR_IIPA_OFFSET, offsetof (struct pt_regs, cr_iipa));
147 DEFINE(IA64_PT_REGS_CR_ISR_OFFSET, offsetof (struct pt_regs, cr_isr));
148 DEFINE(IA64_PT_REGS_EML_UNAT_OFFSET, offsetof (struct pt_regs, eml_unat));
149 DEFINE(IA64_PT_REGS_RFI_PFS_OFFSET, offsetof (struct pt_regs, rfi_pfs));
150 DEFINE(RFI_IIP_OFFSET, offsetof(struct vcpu, arch.arch_vmx.rfi_iip));
151 DEFINE(RFI_IPSR_OFFSET, offsetof(struct vcpu, arch.arch_vmx.rfi_ipsr));
152 DEFINE(RFI_IFS_OFFSET,offsetof(struct vcpu ,arch.arch_vmx.rfi_ifs));
153 DEFINE(RFI_PFS_OFFSET,offsetof(struct vcpu ,arch.arch_vmx.rfi_pfs));
154 DEFINE(SWITCH_MRR5_OFFSET,offsetof(struct vcpu ,arch.arch_vmx.mrr5));
155 DEFINE(SWITCH_MRR6_OFFSET,offsetof(struct vcpu ,arch.arch_vmx.mrr6));
156 DEFINE(SWITCH_MRR7_OFFSET,offsetof(struct vcpu ,arch.arch_vmx.mrr7));
157 DEFINE(SWITCH_MPTA_OFFSET,offsetof(struct vcpu ,arch.arch_vmx.mpta));
158 #endif //CONFIG_VTI
159 DEFINE(IA64_PT_REGS_R16_OFFSET, offsetof (struct pt_regs, r16));
160 DEFINE(IA64_PT_REGS_R17_OFFSET, offsetof (struct pt_regs, r17));
161 DEFINE(IA64_PT_REGS_R18_OFFSET, offsetof (struct pt_regs, r18));
162 DEFINE(IA64_PT_REGS_R19_OFFSET, offsetof (struct pt_regs, r19));
163 DEFINE(IA64_PT_REGS_R20_OFFSET, offsetof (struct pt_regs, r20));
164 DEFINE(IA64_PT_REGS_R21_OFFSET, offsetof (struct pt_regs, r21));
165 DEFINE(IA64_PT_REGS_R22_OFFSET, offsetof (struct pt_regs, r22));
166 DEFINE(IA64_PT_REGS_R23_OFFSET, offsetof (struct pt_regs, r23));
167 DEFINE(IA64_PT_REGS_R24_OFFSET, offsetof (struct pt_regs, r24));
168 DEFINE(IA64_PT_REGS_R25_OFFSET, offsetof (struct pt_regs, r25));
169 DEFINE(IA64_PT_REGS_R26_OFFSET, offsetof (struct pt_regs, r26));
170 DEFINE(IA64_PT_REGS_R27_OFFSET, offsetof (struct pt_regs, r27));
171 DEFINE(IA64_PT_REGS_R28_OFFSET, offsetof (struct pt_regs, r28));
172 DEFINE(IA64_PT_REGS_R29_OFFSET, offsetof (struct pt_regs, r29));
173 DEFINE(IA64_PT_REGS_R30_OFFSET, offsetof (struct pt_regs, r30));
174 DEFINE(IA64_PT_REGS_R31_OFFSET, offsetof (struct pt_regs, r31));
175 DEFINE(IA64_PT_REGS_AR_CCV_OFFSET, offsetof (struct pt_regs, ar_ccv));
176 DEFINE(IA64_PT_REGS_F6_OFFSET, offsetof (struct pt_regs, f6));
177 DEFINE(IA64_PT_REGS_F7_OFFSET, offsetof (struct pt_regs, f7));
178 DEFINE(IA64_PT_REGS_F8_OFFSET, offsetof (struct pt_regs, f8));
179 DEFINE(IA64_PT_REGS_F9_OFFSET, offsetof (struct pt_regs, f9));
180 DEFINE(IA64_PT_REGS_F10_OFFSET, offsetof (struct pt_regs, f10));
181 DEFINE(IA64_PT_REGS_F11_OFFSET, offsetof (struct pt_regs, f11));
183 BLANK();
185 DEFINE(IA64_SWITCH_STACK_CALLER_UNAT_OFFSET, offsetof (struct switch_stack, caller_unat));
186 DEFINE(IA64_SWITCH_STACK_AR_FPSR_OFFSET, offsetof (struct switch_stack, ar_fpsr));
187 DEFINE(IA64_SWITCH_STACK_F2_OFFSET, offsetof (struct switch_stack, f2));
188 DEFINE(IA64_SWITCH_STACK_F3_OFFSET, offsetof (struct switch_stack, f3));
189 DEFINE(IA64_SWITCH_STACK_F4_OFFSET, offsetof (struct switch_stack, f4));
190 DEFINE(IA64_SWITCH_STACK_F5_OFFSET, offsetof (struct switch_stack, f5));
191 DEFINE(IA64_SWITCH_STACK_F12_OFFSET, offsetof (struct switch_stack, f12));
192 DEFINE(IA64_SWITCH_STACK_F13_OFFSET, offsetof (struct switch_stack, f13));
193 DEFINE(IA64_SWITCH_STACK_F14_OFFSET, offsetof (struct switch_stack, f14));
194 DEFINE(IA64_SWITCH_STACK_F15_OFFSET, offsetof (struct switch_stack, f15));
195 DEFINE(IA64_SWITCH_STACK_F16_OFFSET, offsetof (struct switch_stack, f16));
196 DEFINE(IA64_SWITCH_STACK_F17_OFFSET, offsetof (struct switch_stack, f17));
197 DEFINE(IA64_SWITCH_STACK_F18_OFFSET, offsetof (struct switch_stack, f18));
198 DEFINE(IA64_SWITCH_STACK_F19_OFFSET, offsetof (struct switch_stack, f19));
199 DEFINE(IA64_SWITCH_STACK_F20_OFFSET, offsetof (struct switch_stack, f20));
200 DEFINE(IA64_SWITCH_STACK_F21_OFFSET, offsetof (struct switch_stack, f21));
201 DEFINE(IA64_SWITCH_STACK_F22_OFFSET, offsetof (struct switch_stack, f22));
202 DEFINE(IA64_SWITCH_STACK_F23_OFFSET, offsetof (struct switch_stack, f23));
203 DEFINE(IA64_SWITCH_STACK_F24_OFFSET, offsetof (struct switch_stack, f24));
204 DEFINE(IA64_SWITCH_STACK_F25_OFFSET, offsetof (struct switch_stack, f25));
205 DEFINE(IA64_SWITCH_STACK_F26_OFFSET, offsetof (struct switch_stack, f26));
206 DEFINE(IA64_SWITCH_STACK_F27_OFFSET, offsetof (struct switch_stack, f27));
207 DEFINE(IA64_SWITCH_STACK_F28_OFFSET, offsetof (struct switch_stack, f28));
208 DEFINE(IA64_SWITCH_STACK_F29_OFFSET, offsetof (struct switch_stack, f29));
209 DEFINE(IA64_SWITCH_STACK_F30_OFFSET, offsetof (struct switch_stack, f30));
210 DEFINE(IA64_SWITCH_STACK_F31_OFFSET, offsetof (struct switch_stack, f31));
211 DEFINE(IA64_SWITCH_STACK_R4_OFFSET, offsetof (struct switch_stack, r4));
212 DEFINE(IA64_SWITCH_STACK_R5_OFFSET, offsetof (struct switch_stack, r5));
213 DEFINE(IA64_SWITCH_STACK_R6_OFFSET, offsetof (struct switch_stack, r6));
214 DEFINE(IA64_SWITCH_STACK_R7_OFFSET, offsetof (struct switch_stack, r7));
215 DEFINE(IA64_SWITCH_STACK_B0_OFFSET, offsetof (struct switch_stack, b0));
216 DEFINE(IA64_SWITCH_STACK_B1_OFFSET, offsetof (struct switch_stack, b1));
217 DEFINE(IA64_SWITCH_STACK_B2_OFFSET, offsetof (struct switch_stack, b2));
218 DEFINE(IA64_SWITCH_STACK_B3_OFFSET, offsetof (struct switch_stack, b3));
219 DEFINE(IA64_SWITCH_STACK_B4_OFFSET, offsetof (struct switch_stack, b4));
220 DEFINE(IA64_SWITCH_STACK_B5_OFFSET, offsetof (struct switch_stack, b5));
221 DEFINE(IA64_SWITCH_STACK_AR_PFS_OFFSET, offsetof (struct switch_stack, ar_pfs));
222 DEFINE(IA64_SWITCH_STACK_AR_LC_OFFSET, offsetof (struct switch_stack, ar_lc));
223 DEFINE(IA64_SWITCH_STACK_AR_UNAT_OFFSET, offsetof (struct switch_stack, ar_unat));
224 DEFINE(IA64_SWITCH_STACK_AR_RNAT_OFFSET, offsetof (struct switch_stack, ar_rnat));
225 DEFINE(IA64_SWITCH_STACK_AR_BSPSTORE_OFFSET, offsetof (struct switch_stack, ar_bspstore));
226 DEFINE(IA64_SWITCH_STACK_PR_OFFSET, offsetof (struct switch_stack, pr));
228 BLANK();
230 #ifdef CONFIG_VTI
231 DEFINE(IA64_VPD_BASE_OFFSET, offsetof (struct vcpu, arch.arch_vmx.vpd));
232 DEFINE(IA64_VLSAPIC_INSVC_BASE_OFFSET, offsetof (struct vcpu, arch.arch_vmx.in_service[0]));
233 DEFINE(IA64_VPD_CR_VPTA_OFFSET, offsetof (cr_t, pta));
234 DEFINE(XXX_THASH_SIZE, sizeof (thash_data_t));
236 BLANK();
237 #endif //CONFIG_VTI
238 //DEFINE(IA64_SIGCONTEXT_IP_OFFSET, offsetof (struct sigcontext, sc_ip));
239 //DEFINE(IA64_SIGCONTEXT_AR_BSP_OFFSET, offsetof (struct sigcontext, sc_ar_bsp));
240 //DEFINE(IA64_SIGCONTEXT_AR_FPSR_OFFSET, offsetof (struct sigcontext, sc_ar_fpsr));
241 //DEFINE(IA64_SIGCONTEXT_AR_RNAT_OFFSET, offsetof (struct sigcontext, sc_ar_rnat));
242 //DEFINE(IA64_SIGCONTEXT_AR_UNAT_OFFSET, offsetof (struct sigcontext, sc_ar_unat));
243 //DEFINE(IA64_SIGCONTEXT_B0_OFFSET, offsetof (struct sigcontext, sc_br[0]));
244 //DEFINE(IA64_SIGCONTEXT_CFM_OFFSET, offsetof (struct sigcontext, sc_cfm));
245 //DEFINE(IA64_SIGCONTEXT_FLAGS_OFFSET, offsetof (struct sigcontext, sc_flags));
246 //DEFINE(IA64_SIGCONTEXT_FR6_OFFSET, offsetof (struct sigcontext, sc_fr[6]));
247 //DEFINE(IA64_SIGCONTEXT_PR_OFFSET, offsetof (struct sigcontext, sc_pr));
248 //DEFINE(IA64_SIGCONTEXT_R12_OFFSET, offsetof (struct sigcontext, sc_gr[12]));
249 //DEFINE(IA64_SIGCONTEXT_RBS_BASE_OFFSET,offsetof (struct sigcontext, sc_rbs_base));
250 //DEFINE(IA64_SIGCONTEXT_LOADRS_OFFSET, offsetof (struct sigcontext, sc_loadrs));
252 //BLANK();
254 //DEFINE(IA64_SIGPENDING_SIGNAL_OFFSET, offsetof (struct sigpending, signal));
256 //BLANK();
258 //DEFINE(IA64_SIGFRAME_ARG0_OFFSET, offsetof (struct sigframe, arg0));
259 //DEFINE(IA64_SIGFRAME_ARG1_OFFSET, offsetof (struct sigframe, arg1));
260 //DEFINE(IA64_SIGFRAME_ARG2_OFFSET, offsetof (struct sigframe, arg2));
261 //DEFINE(IA64_SIGFRAME_HANDLER_OFFSET, offsetof (struct sigframe, handler));
262 //DEFINE(IA64_SIGFRAME_SIGCONTEXT_OFFSET, offsetof (struct sigframe, sc));
263 //BLANK();
264 /* for assembly files which can't include sched.h: */
265 //DEFINE(IA64_CLONE_VFORK, CLONE_VFORK);
266 //DEFINE(IA64_CLONE_VM, CLONE_VM);
268 BLANK();
269 DEFINE(IA64_CPUINFO_NSEC_PER_CYC_OFFSET, offsetof (struct cpuinfo_ia64, nsec_per_cyc));
270 DEFINE(IA64_TIMESPEC_TV_NSEC_OFFSET, offsetof (struct timespec, tv_nsec));
273 DEFINE(CLONE_IDLETASK_BIT, 12);
274 DEFINE(CLONE_SETTLS_BIT, 19);
275 //#if CLONE_SETTLS != (1<<19)
276 //# error "CLONE_SETTLS_BIT incorrect, please fix"
277 //#endif
279 //BLANK();
280 //DEFINE(IA64_MCA_TLB_INFO_SIZE, sizeof (struct ia64_mca_tlb_info));
281 /* used by head.S */
282 DEFINE(IA64_CPUINFO_NSEC_PER_CYC_OFFSET, offsetof (struct cpuinfo_ia64, nsec_per_cyc));
284 BLANK();
285 /* used by fsys_gettimeofday in arch/ia64/kernel/fsys.S */
286 //DEFINE(IA64_TIME_INTERPOLATOR_ADDRESS_OFFSET, offsetof (struct time_interpolator, addr));
287 //DEFINE(IA64_TIME_INTERPOLATOR_SOURCE_OFFSET, offsetof (struct time_interpolator, source));
288 //DEFINE(IA64_TIME_INTERPOLATOR_SHIFT_OFFSET, offsetof (struct time_interpolator, shift));
289 //DEFINE(IA64_TIME_INTERPOLATOR_NSEC_OFFSET, offsetof (struct time_interpolator, nsec_per_cyc));
290 //DEFINE(IA64_TIME_INTERPOLATOR_OFFSET_OFFSET, offsetof (struct time_interpolator, offset));
291 //DEFINE(IA64_TIME_INTERPOLATOR_LAST_CYCLE_OFFSET, offsetof (struct time_interpolator, last_cycle));
292 //DEFINE(IA64_TIME_INTERPOLATOR_LAST_COUNTER_OFFSET, offsetof (struct time_interpolator, last_counter));
293 //DEFINE(IA64_TIME_INTERPOLATOR_JITTER_OFFSET, offsetof (struct time_interpolator, jitter));
294 //DEFINE(IA64_TIME_INTERPOLATOR_MASK_OFFSET, offsetof (struct time_interpolator, mask));
295 //DEFINE(IA64_TIME_SOURCE_CPU, TIME_SOURCE_CPU);
296 //DEFINE(IA64_TIME_SOURCE_MMIO64, TIME_SOURCE_MMIO64);
297 //DEFINE(IA64_TIME_SOURCE_MMIO32, TIME_SOURCE_MMIO32);
298 //DEFINE(IA64_TIMESPEC_TV_NSEC_OFFSET, offsetof (struct timespec, tv_nsec));
299 }