2005-04-17 06:20:36 +08:00
|
|
|
#ifndef __ASM_MACH_APICDEF_H
|
|
|
|
#define __ASM_MACH_APICDEF_H
|
|
|
|
|
2006-01-06 16:12:08 +08:00
|
|
|
#define APIC_ID_MASK (0xFF<<24)
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
static inline unsigned get_apic_id(unsigned long x)
|
|
|
|
{
|
2006-01-06 16:12:08 +08:00
|
|
|
return (((x)>>24)&0xFF);
|
2005-04-17 06:20:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#define GET_APIC_ID(x) get_apic_id(x)
|
|
|
|
|
|
|
|
#endif
|