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