diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2008-10-16 22:18:04 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2008-10-17 13:05:46 -0400 |
commit | 16583bc0b4871299a60cbcdd1c6e102e3f9b8e4b (patch) | |
tree | 3c842ffd72058786b1487856234883825cdc1054 /arch/ia64/xen | |
parent | 5142ec4690943eefc86b01396addf70083a2b9fb (diff) |
ia64/pv_ops/xen: paravirtualize entry.S for ia64/xen.
paravirtualize entry.S for ia64/xen by multi compile.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/xen')
-rw-r--r-- | arch/ia64/xen/Makefile | 2 | ||||
-rw-r--r-- | arch/ia64/xen/xen_pv_ops.c | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/arch/ia64/xen/Makefile b/arch/ia64/xen/Makefile index 5c87e4a79d39..9b77e8ae4f34 100644 --- a/arch/ia64/xen/Makefile +++ b/arch/ia64/xen/Makefile | |||
@@ -8,7 +8,7 @@ obj-y := hypercall.o xenivt.o xensetup.o xen_pv_ops.o \ | |||
8 | AFLAGS_xenivt.o += -D__IA64_ASM_PARAVIRTUALIZED_XEN | 8 | AFLAGS_xenivt.o += -D__IA64_ASM_PARAVIRTUALIZED_XEN |
9 | 9 | ||
10 | # xen multi compile | 10 | # xen multi compile |
11 | ASM_PARAVIRT_MULTI_COMPILE_SRCS = ivt.S | 11 | ASM_PARAVIRT_MULTI_COMPILE_SRCS = ivt.S entry.S |
12 | ASM_PARAVIRT_OBJS = $(addprefix xen-,$(ASM_PARAVIRT_MULTI_COMPILE_SRCS:.S=.o)) | 12 | ASM_PARAVIRT_OBJS = $(addprefix xen-,$(ASM_PARAVIRT_MULTI_COMPILE_SRCS:.S=.o)) |
13 | obj-y += $(ASM_PARAVIRT_OBJS) | 13 | obj-y += $(ASM_PARAVIRT_OBJS) |
14 | define paravirtualized_xen | 14 | define paravirtualized_xen |
diff --git a/arch/ia64/xen/xen_pv_ops.c b/arch/ia64/xen/xen_pv_ops.c index c236f04ffad5..5b23cd5e9153 100644 --- a/arch/ia64/xen/xen_pv_ops.c +++ b/arch/ia64/xen/xen_pv_ops.c | |||
@@ -275,6 +275,22 @@ static const struct pv_cpu_ops xen_cpu_ops __initdata = { | |||
275 | = xen_intrin_local_irq_restore, | 275 | = xen_intrin_local_irq_restore, |
276 | }; | 276 | }; |
277 | 277 | ||
278 | /****************************************************************************** | ||
279 | * replacement of hand written assembly codes. | ||
280 | */ | ||
281 | |||
282 | extern char xen_switch_to; | ||
283 | extern char xen_leave_syscall; | ||
284 | extern char xen_work_processed_syscall; | ||
285 | extern char xen_leave_kernel; | ||
286 | |||
287 | const struct pv_cpu_asm_switch xen_cpu_asm_switch = { | ||
288 | .switch_to = (unsigned long)&xen_switch_to, | ||
289 | .leave_syscall = (unsigned long)&xen_leave_syscall, | ||
290 | .work_processed_syscall = (unsigned long)&xen_work_processed_syscall, | ||
291 | .leave_kernel = (unsigned long)&xen_leave_kernel, | ||
292 | }; | ||
293 | |||
278 | /*************************************************************************** | 294 | /*************************************************************************** |
279 | * pv_ops initialization | 295 | * pv_ops initialization |
280 | */ | 296 | */ |
@@ -286,4 +302,6 @@ xen_setup_pv_ops(void) | |||
286 | pv_info = xen_info; | 302 | pv_info = xen_info; |
287 | pv_init_ops = xen_init_ops; | 303 | pv_init_ops = xen_init_ops; |
288 | pv_cpu_ops = xen_cpu_ops; | 304 | pv_cpu_ops = xen_cpu_ops; |
305 | |||
306 | paravirt_cpu_asm_init(&xen_cpu_asm_switch); | ||
289 | } | 307 | } |