diff options
-rw-r--r-- | arch/x86/kernel/head_64.S | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S index 2c0abe0e3c68..5e0391229502 100644 --- a/arch/x86/kernel/head_64.S +++ b/arch/x86/kernel/head_64.S | |||
@@ -268,18 +268,14 @@ bad_address: | |||
268 | jmp bad_address | 268 | jmp bad_address |
269 | 269 | ||
270 | #ifdef CONFIG_EARLY_PRINTK | 270 | #ifdef CONFIG_EARLY_PRINTK |
271 | .macro early_idt_tramp first, last | ||
272 | .ifgt \last-\first | ||
273 | early_idt_tramp \first, \last-1 | ||
274 | .endif | ||
275 | movl $\last,%esi | ||
276 | jmp early_idt_handler | ||
277 | .endm | ||
278 | |||
279 | .globl early_idt_handlers | 271 | .globl early_idt_handlers |
280 | early_idt_handlers: | 272 | early_idt_handlers: |
281 | .set maxe, NUM_EXCEPTION_VECTORS-1 | 273 | i = 0 |
282 | early_idt_tramp 0, maxe | 274 | .rept NUM_EXCEPTION_VECTORS |
275 | movl $i, %esi | ||
276 | jmp early_idt_handler | ||
277 | i = i + 1 | ||
278 | .endr | ||
283 | #endif | 279 | #endif |
284 | 280 | ||
285 | ENTRY(early_idt_handler) | 281 | ENTRY(early_idt_handler) |