aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2008-03-10 21:23:22 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:41:29 -0400
commit749c970ae9fa43b4fcf17ac53022a953007d58f4 (patch)
treeef636acfd6196a43bcd98f7af98e644ac2357af1 /arch
parent5524ea320d80e3ac6aeeec44216660831c76da08 (diff)
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: 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>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/head_64.S16
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
280early_idt_handlers: 272early_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
285ENTRY(early_idt_handler) 281ENTRY(early_idt_handler)