7 #define ASM_OFFSETS_C 1
9 #include <linux/sched.h>
13 #include <asm/processor.h>
14 #include <asm/ptrace.h>
15 #include <asm/siginfo.h>
16 #include <asm/sigcontext.h>
19 #include <asm/xen/interface.h>
20 #include <asm/xen/hypervisor.h>
22 #include "../kernel/sigframe.h"
23 #include "../kernel/fsyscall_gtod_data.h"
37 DEFINE(IA64_UPID_SHIFT, 5);
44 #ifdef CONFIG_VIRT_CPU_ACCOUNTING
210 DEFINE(IA64_CPUINFO_NSEC_PER_CYC_OFFSET,
212 DEFINE(IA64_CPUINFO_PTCE_BASE_OFFSET,
214 DEFINE(IA64_CPUINFO_PTCE_COUNT_OFFSET,
216 DEFINE(IA64_CPUINFO_PTCE_STRIDE_OFFSET,
219 DEFINE(IA64_TIMESPEC_TV_NSEC_OFFSET,
222 DEFINE(CLONE_SETTLS_BIT, 19);
223 #if CLONE_SETTLS != (1<<19)
224 # error "CLONE_SETTLS_BIT incorrect, please fix"
228 DEFINE(IA64_MCA_CPU_MCA_STACK_OFFSET,
230 DEFINE(IA64_MCA_CPU_INIT_STACK_OFFSET,
233 DEFINE(IA64_SAL_OS_STATE_OS_GP_OFFSET,
235 DEFINE(IA64_SAL_OS_STATE_PROC_STATE_PARAM_OFFSET,
237 DEFINE(IA64_SAL_OS_STATE_SAL_RA_OFFSET,
239 DEFINE(IA64_SAL_OS_STATE_SAL_GP_OFFSET,
241 DEFINE(IA64_SAL_OS_STATE_PAL_MIN_STATE_OFFSET,
243 DEFINE(IA64_SAL_OS_STATE_OS_STATUS_OFFSET,
245 DEFINE(IA64_SAL_OS_STATE_CONTEXT_OFFSET,
247 DEFINE(IA64_SAL_OS_STATE_SIZE,
251 DEFINE(IA64_PMSA_GR_OFFSET,
253 DEFINE(IA64_PMSA_BANK1_GR_OFFSET,
255 DEFINE(IA64_PMSA_PR_OFFSET,
257 DEFINE(IA64_PMSA_BR0_OFFSET,
259 DEFINE(IA64_PMSA_RSC_OFFSET,
261 DEFINE(IA64_PMSA_IIP_OFFSET,
263 DEFINE(IA64_PMSA_IPSR_OFFSET,
265 DEFINE(IA64_PMSA_IFS_OFFSET,
267 DEFINE(IA64_PMSA_XIP_OFFSET,
272 DEFINE(IA64_GTOD_SEQ_OFFSET,
274 DEFINE(IA64_GTOD_WALL_TIME_OFFSET,
276 DEFINE(IA64_GTOD_MONO_TIME_OFFSET,
278 DEFINE(IA64_CLKSRC_MASK_OFFSET,
280 DEFINE(IA64_CLKSRC_MULT_OFFSET,
282 DEFINE(IA64_CLKSRC_SHIFT_OFFSET,
284 DEFINE(IA64_CLKSRC_MMIO_OFFSET,
286 DEFINE(IA64_CLKSRC_CYCLE_LAST_OFFSET,
288 DEFINE(IA64_ITC_JITTER_OFFSET,
290 DEFINE(IA64_ITC_LASTCYCLE_OFFSET,
299 #define DEFINE_MAPPED_REG_OFS(sym, field) \
300 DEFINE(sym, (XMAPPEDREGS_OFS + offsetof(struct mapped_regs, field)))
302 DEFINE_MAPPED_REG_OFS(XSI_PSR_I_ADDR_OFS, interrupt_mask_addr);
303 DEFINE_MAPPED_REG_OFS(XSI_IPSR_OFS, ipsr);
304 DEFINE_MAPPED_REG_OFS(XSI_IIP_OFS, iip);
305 DEFINE_MAPPED_REG_OFS(XSI_IFS_OFS,
ifs);
306 DEFINE_MAPPED_REG_OFS(XSI_PRECOVER_IFS_OFS, precover_ifs);
307 DEFINE_MAPPED_REG_OFS(XSI_ISR_OFS,
isr);
308 DEFINE_MAPPED_REG_OFS(XSI_IFA_OFS, ifa);
309 DEFINE_MAPPED_REG_OFS(XSI_IIPA_OFS, iipa);
310 DEFINE_MAPPED_REG_OFS(XSI_IIM_OFS,
iim);
311 DEFINE_MAPPED_REG_OFS(XSI_IHA_OFS, iha);
312 DEFINE_MAPPED_REG_OFS(XSI_ITIR_OFS, itir);
313 DEFINE_MAPPED_REG_OFS(XSI_PSR_IC_OFS, interrupt_collection_enabled);
314 DEFINE_MAPPED_REG_OFS(XSI_BANKNUM_OFS, banknum);
315 DEFINE_MAPPED_REG_OFS(XSI_BANK0_R16_OFS, bank0_regs[0]);
316 DEFINE_MAPPED_REG_OFS(XSI_BANK1_R16_OFS, bank1_regs[0]);
317 DEFINE_MAPPED_REG_OFS(XSI_B0NATS_OFS, vbnat);
318 DEFINE_MAPPED_REG_OFS(XSI_B1NATS_OFS, vnat);
319 DEFINE_MAPPED_REG_OFS(XSI_ITC_OFFSET_OFS, itc_offset);
320 DEFINE_MAPPED_REG_OFS(XSI_ITC_LAST_OFS, itc_last);