mach_apicdef.h 254 B

123456789101112
  1. #ifndef __ASM_MACH_APICDEF_H
  2. #define __ASM_MACH_APICDEF_H
  3. #define APIC_ID_MASK (0xF<<24)
  4. static inline unsigned get_apic_id(unsigned long x)
  5. {
  6. return (((x)>>24)&0xF);
  7. }
  8. #define GET_APIC_ID(x) get_apic_id(x)
  9. #endif