1 #ifndef _ASM_X86_MACH_DEFAULT_MACH_APICDEF_H
2 #define _ASM_X86_MACH_DEFAULT_MACH_APICDEF_H
7 #define APIC_ID_MASK (genapic->apic_id_mask)
8 #define GET_APIC_ID(x) (genapic->get_apic_id(x))
9 #define SET_APIC_ID(x) (genapic->set_apic_id(x))
11 #define APIC_ID_MASK (0xF<<24)
12 static inline unsigned get_apic_id(unsigned long x)
14 unsigned int ver = GET_APIC_VERSION(apic_read(APIC_LVR));
16 return (((x)>>24)&0xFF);
18 return (((x)>>24)&0xF);
21 #define GET_APIC_ID(x) get_apic_id(x)
24 #endif /* _ASM_X86_MACH_DEFAULT_MACH_APICDEF_H */