From 4fa98851507224346c5d9d49d304b5879f30caeb Mon Sep 17 00:00:00 2001 From: Andi Kleen Date: Tue, 11 Mar 2008 02:23:22 +0100 Subject: [PATCH] --- yaml --- r: 89063 b: refs/heads/master c: 749c970ae9fa43b4fcf17ac53022a953007d58f4 h: refs/heads/master i: 89061: 89e3b7160e0084ce258674db1f5860f78afeff65 89059: d77166b6c566af3f7b80f52c6577543eafa1b62a 89055: 3dc06a14a120800ca38e4027f11c24421d2434dc v: v3 --- [refs] | 2 +- trunk/arch/x86/kernel/head_64.S | 16 ++++++---------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/[refs] b/[refs] index 21375776968f..b8311a869547 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5524ea320d80e3ac6aeeec44216660831c76da08 +refs/heads/master: 749c970ae9fa43b4fcf17ac53022a953007d58f4 diff --git a/trunk/arch/x86/kernel/head_64.S b/trunk/arch/x86/kernel/head_64.S index 2c0abe0e3c68..5e0391229502 100644 --- a/trunk/arch/x86/kernel/head_64.S +++ b/trunk/arch/x86/kernel/head_64.S @@ -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)