diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-05-01 11:34:56 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-05-01 11:34:56 +0100 |
commit | b81f8a02e719ea650d3f87edd4c75cdb686df728 (patch) | |
tree | 6f714cabc7890ed7fe662ecbeb75be0640e59677 /xen/include/asm-x86/smp.h | |
parent | 6176d3cd0bab4b90736e73da2db80e8aeb7f5e1d (diff) | |
download | xen-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.h | 4 |
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 |