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