aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/apicdef.h
diff options
context:
space:
mode:
authorJack Steiner <steiner@sgi.com>2008-03-28 15:12:08 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:41:33 -0400
commita65d1d644c2b65bfb99e766e7160d764b8b2bfa4 (patch)
treefe19c7b1d5fbb7089537d78383c2b89863c0377b /include/asm-x86/apicdef.h
parentae261868658773538ddda829c50224e5851c2342 (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 'include/asm-x86/apicdef.h')
-rw-r--r--include/asm-x86/apicdef.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/asm-x86/apicdef.h b/include/asm-x86/apicdef.h
index 8b244683431b..6b9008c78731 100644
--- a/include/asm-x86/apicdef.h
+++ b/include/asm-x86/apicdef.h
@@ -133,7 +133,7 @@
133# define MAX_IO_APICS 64 133# define MAX_IO_APICS 64
134#else 134#else
135# define MAX_IO_APICS 128 135# define MAX_IO_APICS 128
136# define MAX_LOCAL_APIC 256 136# define MAX_LOCAL_APIC 32768
137#endif 137#endif
138 138
139/* 139/*
@@ -406,6 +406,9 @@ struct local_apic {
406 406
407#undef u32 407#undef u32
408 408
409#define BAD_APICID 0xFFu 409#ifdef CONFIG_X86_32
410 410 #define BAD_APICID 0xFFu
411#else
412 #define BAD_APICID 0xFFFFu
413#endif
411#endif 414#endif