diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2008-10-16 22:17:58 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2008-10-17 13:02:21 -0400 |
commit | 080104cd0f708b6bb5a121922801867a29ad63fc (patch) | |
tree | 119f220c954dc731322ff759fcfb5ae0a8836a75 /arch/ia64/kernel/asm-offsets.c | |
parent | c7fdaf338679f5e0343bfdfa7ae1e2fdb41ff0b1 (diff) |
ia64/pv_ops/xen: elf note based xen startup.
This patch enables elf note based xen startup for IA-64, which gives the
kernel an early hint for running on xen like x86 case.
In order to avoid the multi entry point, presumably extending booting
protocol(i.e. extending struct ia64_boot_param) would be necessary.
It probably means that elilo also needs modification.
Signed-off-by: Qing He <qing.he@intel.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/asm-offsets.c')
-rw-r--r-- | arch/ia64/kernel/asm-offsets.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/ia64/kernel/asm-offsets.c b/arch/ia64/kernel/asm-offsets.c index eaa988baa877..742dbb1d5a4f 100644 --- a/arch/ia64/kernel/asm-offsets.c +++ b/arch/ia64/kernel/asm-offsets.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <asm/mca.h> | 17 | #include <asm/mca.h> |
18 | 18 | ||
19 | #include <asm/xen/interface.h> | 19 | #include <asm/xen/interface.h> |
20 | #include <asm/xen/hypervisor.h> | ||
20 | 21 | ||
21 | #include "../kernel/sigframe.h" | 22 | #include "../kernel/sigframe.h" |
22 | #include "../kernel/fsyscall_gtod_data.h" | 23 | #include "../kernel/fsyscall_gtod_data.h" |
@@ -292,6 +293,9 @@ void foo(void) | |||
292 | #ifdef CONFIG_XEN | 293 | #ifdef CONFIG_XEN |
293 | BLANK(); | 294 | BLANK(); |
294 | 295 | ||
296 | DEFINE(XEN_NATIVE_ASM, XEN_NATIVE); | ||
297 | DEFINE(XEN_PV_DOMAIN_ASM, XEN_PV_DOMAIN); | ||
298 | |||
295 | #define DEFINE_MAPPED_REG_OFS(sym, field) \ | 299 | #define DEFINE_MAPPED_REG_OFS(sym, field) \ |
296 | DEFINE(sym, (XMAPPEDREGS_OFS + offsetof(struct mapped_regs, field))) | 300 | DEFINE(sym, (XMAPPEDREGS_OFS + offsetof(struct mapped_regs, field))) |
297 | 301 | ||