aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/io_apic.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-10-20 15:13:50 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-10-20 15:13:50 +0100
commitd69c0f4bbed02762a4e1dff9a5e4da681f1d2867 (patch)
tree777a301e03bfbf6237a26f24ea08ae458c500cd6 /xen/include/asm-x86/io_apic.h
parent327b9bfff178cbabd66fa35d6cc2dc38935d31e4 (diff)
downloadxen-d69c0f4bbed02762a4e1dff9a5e4da681f1d2867.tar.gz
xen-d69c0f4bbed02762a4e1dff9a5e4da681f1d2867.tar.bz2
xen-d69c0f4bbed02762a4e1dff9a5e4da681f1d2867.zip
Define a macro IO_APIC_ID() for x86.
Signed-off-by: Anthony Xu <anthony.xu@intel.com> Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Diffstat (limited to 'xen/include/asm-x86/io_apic.h')
-rw-r--r--xen/include/asm-x86/io_apic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/include/asm-x86/io_apic.h b/xen/include/asm-x86/io_apic.h
index 6124d0fae0..f7569cebed 100644
--- a/xen/include/asm-x86/io_apic.h
+++ b/xen/include/asm-x86/io_apic.h
@@ -20,6 +20,8 @@
((volatile int *)(__fix_to_virt(FIX_IO_APIC_BASE_0 + idx) \
+ (mp_ioapics[idx].mpc_apicaddr & ~PAGE_MASK)))
+#define IO_APIC_ID(idx) (mp_ioapics[idx].mpc_apicid)
+
/*
* The structure of the IO-APIC:
*/