Konrad Rzeszutek Wilk | 31b3c9d | 2012-03-20 18:53:10 -0400 | [diff] [blame^] | 1 | #include <linux/init.h> |
2 | #include <asm/x86_init.h> | ||||
3 | |||||
4 | unsigned 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 | |||||
14 | void __init xen_init_apic(void) | ||||
15 | { | ||||
16 | x86_io_apic_ops.read = xen_io_apic_read; | ||||
17 | } |