diff options
Diffstat (limited to 'include/asm-x86/segment.h')
| -rw-r--r-- | include/asm-x86/segment.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-x86/segment.h b/include/asm-x86/segment.h index 23f0535fec61..ed5131dd7d92 100644 --- a/include/asm-x86/segment.h +++ b/include/asm-x86/segment.h | |||
| @@ -191,13 +191,14 @@ | |||
| 191 | #define SEGMENT_TI_MASK 0x4 | 191 | #define SEGMENT_TI_MASK 0x4 |
| 192 | 192 | ||
| 193 | #define IDT_ENTRIES 256 | 193 | #define IDT_ENTRIES 256 |
| 194 | #define NUM_EXCEPTION_VECTORS 32 | ||
| 194 | #define GDT_SIZE (GDT_ENTRIES * 8) | 195 | #define GDT_SIZE (GDT_ENTRIES * 8) |
| 195 | #define GDT_ENTRY_TLS_ENTRIES 3 | 196 | #define GDT_ENTRY_TLS_ENTRIES 3 |
| 196 | #define TLS_SIZE (GDT_ENTRY_TLS_ENTRIES * 8) | 197 | #define TLS_SIZE (GDT_ENTRY_TLS_ENTRIES * 8) |
| 197 | 198 | ||
| 198 | #ifdef __KERNEL__ | 199 | #ifdef __KERNEL__ |
| 199 | #ifndef __ASSEMBLY__ | 200 | #ifndef __ASSEMBLY__ |
| 200 | extern const char early_idt_handlers[IDT_ENTRIES][10]; | 201 | extern const char early_idt_handlers[NUM_EXCEPTION_VECTORS][10]; |
| 201 | #endif | 202 | #endif |
| 202 | #endif | 203 | #endif |
| 203 | 204 | ||
