|
@@ -275,6 +275,22 @@ static const struct pv_cpu_ops xen_cpu_ops __initdata = {
|
|
|
= xen_intrin_local_irq_restore,
|
|
|
};
|
|
|
|
|
|
+/******************************************************************************
|
|
|
+ * replacement of hand written assembly codes.
|
|
|
+ */
|
|
|
+
|
|
|
+extern char xen_switch_to;
|
|
|
+extern char xen_leave_syscall;
|
|
|
+extern char xen_work_processed_syscall;
|
|
|
+extern char xen_leave_kernel;
|
|
|
+
|
|
|
+const struct pv_cpu_asm_switch xen_cpu_asm_switch = {
|
|
|
+ .switch_to = (unsigned long)&xen_switch_to,
|
|
|
+ .leave_syscall = (unsigned long)&xen_leave_syscall,
|
|
|
+ .work_processed_syscall = (unsigned long)&xen_work_processed_syscall,
|
|
|
+ .leave_kernel = (unsigned long)&xen_leave_kernel,
|
|
|
+};
|
|
|
+
|
|
|
/***************************************************************************
|
|
|
* pv_ops initialization
|
|
|
*/
|
|
@@ -286,4 +302,6 @@ xen_setup_pv_ops(void)
|
|
|
pv_info = xen_info;
|
|
|
pv_init_ops = xen_init_ops;
|
|
|
pv_cpu_ops = xen_cpu_ops;
|
|
|
+
|
|
|
+ paravirt_cpu_asm_init(&xen_cpu_asm_switch);
|
|
|
}
|