aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/smp.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-05-01 11:34:56 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-05-01 11:34:56 +0100
commitb81f8a02e719ea650d3f87edd4c75cdb686df728 (patch)
tree6f714cabc7890ed7fe662ecbeb75be0640e59677 /xen/include/asm-x86/smp.h
parent6176d3cd0bab4b90736e73da2db80e8aeb7f5e1d (diff)
downloadxen-b81f8a02e719ea650d3f87edd4c75cdb686df728.tar.gz
xen-b81f8a02e719ea650d3f87edd4c75cdb686df728.tar.bz2
xen-b81f8a02e719ea650d3f87edd4c75cdb686df728.zip
x86: Support x2APIC mode.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Diffstat (limited to 'xen/include/asm-x86/smp.h')
-rw-r--r--xen/include/asm-x86/smp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/include/asm-x86/smp.h b/xen/include/asm-x86/smp.h
index 67dd5c6c69..2078d441ec 100644
--- a/xen/include/asm-x86/smp.h
+++ b/xen/include/asm-x86/smp.h
@@ -90,13 +90,13 @@ static inline int num_booting_cpus(void)
static inline int hard_smp_processor_id(void)
{
/* we don't want to mark this access volatile - bad code generation */
- return GET_APIC_ID(*(unsigned int *)(APIC_BASE+APIC_ID));
+ return get_apic_id();
}
static __inline int logical_smp_processor_id(void)
{
/* we don't want to mark this access volatile - bad code generation */
- return GET_APIC_LOGICAL_ID(*(unsigned int *)(APIC_BASE+APIC_LDR));
+ return get_logical_apic_id();
}
#endif