Commit 749c970a authored by Andi Kleen's avatar Andi Kleen Committed by Ingo Molnar

x86: replace early exception setup macro recursion with loop

The early exception handlers are currently set up using a macro
recursion. There is only one user left. Replace the macro with a
standard loop in place.

Noop patch, just a cleanup.

[ tglx@linutronix.de: simplified ]
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Cc: mingo@elte.hu
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 5524ea32
...@@ -268,18 +268,14 @@ bad_address: ...@@ -268,18 +268,14 @@ bad_address:
jmp bad_address jmp bad_address
#ifdef CONFIG_EARLY_PRINTK #ifdef CONFIG_EARLY_PRINTK
.macro early_idt_tramp first, last
.ifgt \last-\first
early_idt_tramp \first, \last-1
.endif
movl $\last,%esi
jmp early_idt_handler
.endm
.globl early_idt_handlers .globl early_idt_handlers
early_idt_handlers: early_idt_handlers:
.set maxe, NUM_EXCEPTION_VECTORS-1 i = 0
early_idt_tramp 0, maxe .rept NUM_EXCEPTION_VECTORS
movl $i, %esi
jmp early_idt_handler
i = i + 1
.endr
#endif #endif
ENTRY(early_idt_handler) ENTRY(early_idt_handler)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment