aboutsummaryrefslogtreecommitdiff
path: root/include/asm-x86/segment.h
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2008-03-11 02:23:20 +0100
committerIngo Molnar <mingo@elte.hu>2008-04-17 17:41:29 +0200
commit5524ea320d80e3ac6aeeec44216660831c76da08 (patch)
treec4215dbc41cedac15838ff5110958fa7ed8e9a67 /include/asm-x86/segment.h
parent366932deb335f0b84a08463c5c912bd42ac3397a (diff)
x86: don't set up early exception handlers for external interrupts
All of early setup runs with interrupts disabled, so there is no need to set up early exception handlers for vectors >= 32 This saves some minor text size. Signed-off-by: Andi Kleen <ak@suse.de> Cc: mingo@elte.hu Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/segment.h')
-rw-r--r--include/asm-x86/segment.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-x86/segment.h b/include/asm-x86/segment.h
index 23f0535fec6..ed5131dd7d9 100644
--- a/include/asm-x86/segment.h
+++ b/include/asm-x86/segment.h
@@ -191,13 +191,14 @@
#define SEGMENT_TI_MASK 0x4
#define IDT_ENTRIES 256
+#define NUM_EXCEPTION_VECTORS 32
#define GDT_SIZE (GDT_ENTRIES * 8)
#define GDT_ENTRY_TLS_ENTRIES 3
#define TLS_SIZE (GDT_ENTRY_TLS_ENTRIES * 8)
#ifdef __KERNEL__
#ifndef __ASSEMBLY__
-extern const char early_idt_handlers[IDT_ENTRIES][10];
+extern const char early_idt_handlers[NUM_EXCEPTION_VECTORS][10];
#endif
#endif