]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/kernel/head_64.S
x86: replace early exception setup macro recursion with loop
[linux-2.6-omap-h63xx.git] / arch / x86 / kernel / head_64.S
index a007454133a33743b60fce4ebd3c90e8c32ee85e..5e0391229502cf5b49ccb6954dd902f23237a35b 100644 (file)
@@ -268,20 +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:
-       early_idt_tramp 0, 63
-       early_idt_tramp 64, 127
-       early_idt_tramp 128, 191
-       early_idt_tramp 192, 255
+       i = 0
+       .rept NUM_EXCEPTION_VECTORS
+       movl $i, %esi
+       jmp early_idt_handler
+       i = i + 1
+       .endr
 #endif
 
 ENTRY(early_idt_handler)
@@ -383,12 +377,12 @@ NEXT_PAGE(level2_ident_pgt)
 
 NEXT_PAGE(level2_kernel_pgt)
        /*
-        * 128 MB kernel mapping. We spend a full page on this pagetable
+        * 512 MB kernel mapping. We spend a full page on this pagetable
         * anyway.
         *
         * The kernel code+data+bss must not be bigger than that.
         *
-        * (NOTE: at +128MB starts the module area, see MODULES_VADDR.
+        * (NOTE: at +512MB starts the module area, see MODULES_VADDR.
         *  If you want to increase this then increase MODULES_VADDR
         *  too.)
         */