diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-10-20 15:13:50 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-10-20 15:13:50 +0100 |
commit | d69c0f4bbed02762a4e1dff9a5e4da681f1d2867 (patch) | |
tree | 777a301e03bfbf6237a26f24ea08ae458c500cd6 /xen/include/asm-x86/io_apic.h | |
parent | 327b9bfff178cbabd66fa35d6cc2dc38935d31e4 (diff) | |
download | xen-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.h | 2 |
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: */ |