Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 89062
b: refs/heads/master
c: 5524ea3
h: refs/heads/master
v: v3
  • Loading branch information
Andi Kleen authored and Ingo Molnar committed Apr 17, 2008
1 parent 89e3b71 commit 3435145
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 366932deb335f0b84a08463c5c912bd42ac3397a
refs/heads/master: 5524ea320d80e3ac6aeeec44216660831c76da08
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/head64.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ void __init x86_64_start_kernel(char * real_mode_data)
/* Cleanup the over mapped high alias */
cleanup_highmap();

for (i = 0; i < IDT_ENTRIES; i++) {
for (i = 0; i < NUM_EXCEPTION_VECTORS; i++) {
#ifdef CONFIG_EARLY_PRINTK
set_intr_gate(i, &early_idt_handlers[i]);
#else
Expand Down
6 changes: 2 additions & 4 deletions trunk/arch/x86/kernel/head_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,8 @@ bad_address:

.globl early_idt_handlers
early_idt_handlers:
early_idt_tramp 0, 63
early_idt_tramp 64, 127
early_idt_tramp 128, 191
early_idt_tramp 192, 255
.set maxe, NUM_EXCEPTION_VECTORS-1
early_idt_tramp 0, maxe
#endif

ENTRY(early_idt_handler)
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/asm-x86/segment.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3435145

Please sign in to comment.