|
@@ -106,8 +106,6 @@ extern u32 native_safe_apic_wait_icr_idle(void);
|
|
|
extern void native_apic_icr_write(u32 low, u32 id);
|
|
|
extern u64 native_apic_icr_read(void);
|
|
|
|
|
|
-extern int x2apic_mode;
|
|
|
-
|
|
|
static inline bool apic_is_x2apic_enabled(void)
|
|
|
{
|
|
|
u64 msr;
|
|
@@ -178,6 +176,7 @@ static inline u64 native_x2apic_icr_read(void)
|
|
|
return val;
|
|
|
}
|
|
|
|
|
|
+extern int x2apic_mode;
|
|
|
extern int x2apic_phys;
|
|
|
extern int x2apic_preenabled;
|
|
|
extern void check_x2apic(void);
|
|
@@ -210,8 +209,9 @@ static inline void x2apic_force_phys(void)
|
|
|
{
|
|
|
}
|
|
|
|
|
|
-#define x2apic_preenabled 0
|
|
|
-#define x2apic_supported() 0
|
|
|
+#define x2apic_mode (0)
|
|
|
+#define x2apic_preenabled (0)
|
|
|
+#define x2apic_supported() (0)
|
|
|
#endif
|
|
|
|
|
|
extern void enable_IR_x2apic(void);
|