aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/ia64/include/asm/xen/inst.h8
-rw-r--r--arch/ia64/xen/Makefile2
-rw-r--r--arch/ia64/xen/xen_pv_ops.c18
3 files changed, 27 insertions, 1 deletions
diff --git a/arch/ia64/include/asm/xen/inst.h b/arch/ia64/include/asm/xen/inst.h
index e6a25c34c7a..19c2ae1d878 100644
--- a/arch/ia64/include/asm/xen/inst.h
+++ b/arch/ia64/include/asm/xen/inst.h
@@ -25,6 +25,14 @@
25#define ia64_ivt xen_ivt 25#define ia64_ivt xen_ivt
26#define DO_SAVE_MIN XEN_DO_SAVE_MIN 26#define DO_SAVE_MIN XEN_DO_SAVE_MIN
27 27
28#define __paravirt_switch_to xen_switch_to
29#define __paravirt_leave_syscall xen_leave_syscall
30#define __paravirt_work_processed_syscall xen_work_processed_syscall
31#define __paravirt_leave_kernel xen_leave_kernel
32#define __paravirt_pending_syscall_end xen_work_pending_syscall_end
33#define __paravirt_work_processed_syscall_target \
34 xen_work_processed_syscall
35
28#define MOV_FROM_IFA(reg) \ 36#define MOV_FROM_IFA(reg) \
29 movl reg = XSI_IFA; \ 37 movl reg = XSI_IFA; \
30 ;; \ 38 ;; \
diff --git a/arch/ia64/xen/Makefile b/arch/ia64/xen/Makefile
index 5c87e4a79d3..9b77e8ae4f3 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 \
8AFLAGS_xenivt.o += -D__IA64_ASM_PARAVIRTUALIZED_XEN 8AFLAGS_xenivt.o += -D__IA64_ASM_PARAVIRTUALIZED_XEN
9 9
10# xen multi compile 10# xen multi compile
11ASM_PARAVIRT_MULTI_COMPILE_SRCS = ivt.S 11ASM_PARAVIRT_MULTI_COMPILE_SRCS = ivt.S entry.S
12ASM_PARAVIRT_OBJS = $(addprefix xen-,$(ASM_PARAVIRT_MULTI_COMPILE_SRCS:.S=.o)) 12ASM_PARAVIRT_OBJS = $(addprefix xen-,$(ASM_PARAVIRT_MULTI_COMPILE_SRCS:.S=.o))
13obj-y += $(ASM_PARAVIRT_OBJS) 13obj-y += $(ASM_PARAVIRT_OBJS)
14define paravirtualized_xen 14define paravirtualized_xen
diff --git a/arch/ia64/xen/xen_pv_ops.c b/arch/ia64/xen/xen_pv_ops.c
index c236f04ffad..5b23cd5e915 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
282extern char xen_switch_to;
283extern char xen_leave_syscall;
284extern char xen_work_processed_syscall;
285extern char xen_leave_kernel;
286
287const 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}