Skip to content

Commit

Permalink
x86: replace early exception setup macro recursion with loop
Browse files Browse the repository at this point in the history
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: Andi Kleen <ak@suse.de>
Cc: mingo@elte.hu
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Andi Kleen authored and Ingo Molnar committed Apr 17, 2008
1 parent 5524ea3 commit 749c970
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions arch/x86/kernel/head_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -268,18 +268,14 @@ bad_address:
jmp bad_address

#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
early_idt_handlers:
.set maxe, NUM_EXCEPTION_VECTORS-1
early_idt_tramp 0, maxe
i = 0
.rept NUM_EXCEPTION_VECTORS
movl $i, %esi
jmp early_idt_handler
i = i + 1
.endr
#endif

ENTRY(early_idt_handler)
Expand Down

0 comments on commit 749c970

Please sign in to comment.