1 #include <linux/init.h>
3 #include <asm/x86_init.h>
5 #include <asm/xen/hypercall.h>
8 #include <xen/interface/physdev.h>
11 static unsigned int xen_io_apic_read(unsigned apic
, unsigned reg
)
13 struct physdev_apic apic_op
;
16 apic_op
.apic_physbase
= mpc_ioapic_addr(apic
);
18 ret
= HYPERVISOR_physdev_op(PHYSDEVOP_apic_read
, &apic_op
);
22 /* fallback to return an emulated IO_APIC values */
31 void __init
xen_init_apic(void)
33 x86_io_apic_ops
.read
= xen_io_apic_read
;