aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2008-10-16 22:17:49 -0400
committerTony Luck <tony.luck@intel.com>2008-10-17 12:55:36 -0400
commitb31c09bd82731600a72c83894e7c6a53b36b6c83 (patch)
treee635b3d57efb2cc1d989226572749166ae81e8ec
parentffcc99e992aef3bb5ab4b177b6bd84954ac2e327 (diff)
ia64/xen: define several constants for ia64/xen.
define several constants for ia64/xen. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Tony Luck <tony.luck@intel.com>
-rw-r--r--arch/ia64/kernel/asm-offsets.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/ia64/kernel/asm-offsets.c b/arch/ia64/kernel/asm-offsets.c
index 94c44b1ccfd0..eaa988baa877 100644
--- a/arch/ia64/kernel/asm-offsets.c
+++ b/arch/ia64/kernel/asm-offsets.c
@@ -16,6 +16,8 @@
16#include <asm/sigcontext.h> 16#include <asm/sigcontext.h>
17#include <asm/mca.h> 17#include <asm/mca.h>
18 18
19#include <asm/xen/interface.h>
20
19#include "../kernel/sigframe.h" 21#include "../kernel/sigframe.h"
20#include "../kernel/fsyscall_gtod_data.h" 22#include "../kernel/fsyscall_gtod_data.h"
21 23
@@ -286,4 +288,29 @@ void foo(void)
286 offsetof (struct itc_jitter_data_t, itc_jitter)); 288 offsetof (struct itc_jitter_data_t, itc_jitter));
287 DEFINE(IA64_ITC_LASTCYCLE_OFFSET, 289 DEFINE(IA64_ITC_LASTCYCLE_OFFSET,
288 offsetof (struct itc_jitter_data_t, itc_lastcycle)); 290 offsetof (struct itc_jitter_data_t, itc_lastcycle));
291
292#ifdef CONFIG_XEN
293 BLANK();
294
295#define DEFINE_MAPPED_REG_OFS(sym, field) \
296 DEFINE(sym, (XMAPPEDREGS_OFS + offsetof(struct mapped_regs, field)))
297
298 DEFINE_MAPPED_REG_OFS(XSI_PSR_I_ADDR_OFS, interrupt_mask_addr);
299 DEFINE_MAPPED_REG_OFS(XSI_IPSR_OFS, ipsr);
300 DEFINE_MAPPED_REG_OFS(XSI_IIP_OFS, iip);
301 DEFINE_MAPPED_REG_OFS(XSI_IFS_OFS, ifs);
302 DEFINE_MAPPED_REG_OFS(XSI_PRECOVER_IFS_OFS, precover_ifs);
303 DEFINE_MAPPED_REG_OFS(XSI_ISR_OFS, isr);
304 DEFINE_MAPPED_REG_OFS(XSI_IFA_OFS, ifa);
305 DEFINE_MAPPED_REG_OFS(XSI_IIPA_OFS, iipa);
306 DEFINE_MAPPED_REG_OFS(XSI_IIM_OFS, iim);
307 DEFINE_MAPPED_REG_OFS(XSI_IHA_OFS, iha);
308 DEFINE_MAPPED_REG_OFS(XSI_ITIR_OFS, itir);
309 DEFINE_MAPPED_REG_OFS(XSI_PSR_IC_OFS, interrupt_collection_enabled);
310 DEFINE_MAPPED_REG_OFS(XSI_BANKNUM_OFS, banknum);
311 DEFINE_MAPPED_REG_OFS(XSI_BANK0_R16_OFS, bank0_regs[0]);
312 DEFINE_MAPPED_REG_OFS(XSI_BANK1_R16_OFS, bank1_regs[0]);
313 DEFINE_MAPPED_REG_OFS(XSI_B0NATS_OFS, vbnat);
314 DEFINE_MAPPED_REG_OFS(XSI_B1NATS_OFS, vnat);
315#endif /* CONFIG_XEN */
289} 316}