diff options
author | Jack Steiner <steiner@sgi.com> | 2008-03-28 15:12:08 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:33 -0400 |
commit | a65d1d644c2b65bfb99e766e7160d764b8b2bfa4 (patch) | |
tree | fe19c7b1d5fbb7089537d78383c2b89863c0377b /arch/x86/kernel/mpparse_32.c | |
parent | ae261868658773538ddda829c50224e5851c2342 (diff) |
x86: increase size of APICID
Increase the number of bits in an apicid from 8 to 32.
By default, MP_processor_info() gets the APICID from the
mpc_config_processor structure. However, this structure limits
the size of APICID to 8 bits. This patch allows the caller of
MP_processor_info() to optionally pass a larger APICID that will
be used instead of the one in the mpc_config_processor struct.
Signed-off-by: Jack Steiner <steiner@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/mpparse_32.c')
-rw-r--r-- | arch/x86/kernel/mpparse_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/mpparse_32.c b/arch/x86/kernel/mpparse_32.c index 4b46a37e0634..7b7e008496e0 100644 --- a/arch/x86/kernel/mpparse_32.c +++ b/arch/x86/kernel/mpparse_32.c | |||
@@ -807,7 +807,7 @@ void __init mp_register_lapic_address(u64 address) | |||
807 | Dprintk("Boot CPU = %d\n", boot_cpu_physical_apicid); | 807 | Dprintk("Boot CPU = %d\n", boot_cpu_physical_apicid); |
808 | } | 808 | } |
809 | 809 | ||
810 | void __cpuinit mp_register_lapic (u8 id, u8 enabled) | 810 | void __cpuinit mp_register_lapic (int id, u8 enabled) |
811 | { | 811 | { |
812 | if (MAX_APICS - id <= 0) { | 812 | if (MAX_APICS - id <= 0) { |
813 | printk(KERN_WARNING "Processor #%d invalid (max %d)\n", | 813 | printk(KERN_WARNING "Processor #%d invalid (max %d)\n", |
@@ -862,7 +862,7 @@ static u8 uniq_ioapic_id(u8 id) | |||
862 | return id; | 862 | return id; |
863 | } | 863 | } |
864 | 864 | ||
865 | void __init mp_register_ioapic(u8 id, u32 address, u32 gsi_base) | 865 | void __init mp_register_ioapic(int id, u32 address, u32 gsi_base) |
866 | { | 866 | { |
867 | int idx = 0; | 867 | int idx = 0; |
868 | 868 | ||