aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/apic.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/xen/apic.c')
-rw-r--r--arch/x86/xen/apic.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/x86/xen/apic.c b/arch/x86/xen/apic.c
new file mode 100644
index 000000000000..73ade38caa32
--- /dev/null
+++ b/arch/x86/xen/apic.c
@@ -0,0 +1,17 @@
1#include <linux/init.h>
2#include <asm/x86_init.h>
3
4unsigned int xen_io_apic_read(unsigned apic, unsigned reg)
5{
6 if (reg == 0x1)
7 return 0x00170020;
8 else if (reg == 0x0)
9 return apic << 24;
10
11 return 0xfd;
12}
13
14void __init xen_init_apic(void)
15{
16 x86_io_apic_ops.read = xen_io_apic_read;
17}