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