aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/include/asm/proto.h2
-rw-r--r--arch/x86/kernel/head64.c7
-rw-r--r--arch/x86/kernel/head_64.S2
3 files changed, 3 insertions, 8 deletions
diff --git a/arch/x86/include/asm/proto.h b/arch/x86/include/asm/proto.h
index 6f414ed88620..6fd3fd769796 100644
--- a/arch/x86/include/asm/proto.h
+++ b/arch/x86/include/asm/proto.h
@@ -5,8 +5,6 @@
5 5
6/* misc architecture specific prototypes */ 6/* misc architecture specific prototypes */
7 7
8void early_idt_handler(void);
9
10void system_call(void); 8void system_call(void);
11void syscall_init(void); 9void syscall_init(void);
12 10
diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c
index 57334f4cd3af..2590025e52c2 100644
--- a/arch/x86/kernel/head64.c
+++ b/arch/x86/kernel/head64.c
@@ -159,13 +159,8 @@ void __init x86_64_start_kernel(char * real_mode_data)
159 /* clear bss before set_intr_gate with early_idt_handler */ 159 /* clear bss before set_intr_gate with early_idt_handler */
160 clear_bss(); 160 clear_bss();
161 161
162 for (i = 0; i < NUM_EXCEPTION_VECTORS; i++) { 162 for (i = 0; i < NUM_EXCEPTION_VECTORS; i++)
163#ifdef CONFIG_EARLY_PRINTK
164 set_intr_gate(i, &early_idt_handlers[i]); 163 set_intr_gate(i, &early_idt_handlers[i]);
165#else
166 set_intr_gate(i, early_idt_handler);
167#endif
168 }
169 load_idt((const struct desc_ptr *)&idt_descr); 164 load_idt((const struct desc_ptr *)&idt_descr);
170 165
171 copy_bootdata(__va(real_mode_data)); 166 copy_bootdata(__va(real_mode_data));
diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S
index d94f6d68be2a..b7de3b25adb5 100644
--- a/arch/x86/kernel/head_64.S
+++ b/arch/x86/kernel/head_64.S
@@ -336,6 +336,7 @@ early_idt_handlers:
336 i = i + 1 336 i = i + 1
337 .endr 337 .endr
338 338
339/* This is global to keep gas from relaxing the jumps */
339ENTRY(early_idt_handler) 340ENTRY(early_idt_handler)
340 cld 341 cld
341 342
@@ -404,6 +405,7 @@ ENTRY(early_idt_handler)
404 addq $16,%rsp # drop vector number and error code 405 addq $16,%rsp # drop vector number and error code
405 decl early_recursion_flag(%rip) 406 decl early_recursion_flag(%rip)
406 INTERRUPT_RETURN 407 INTERRUPT_RETURN
408ENDPROC(early_idt_handler)
407 409
408 __INITDATA 410 __INITDATA
409 411