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