]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: head_64.S cleanup - use PMD_SHIFT instead of numeric constant
authorCyrill Gorcunov <gorcunov@gmail.com>
Tue, 13 May 2008 16:55:40 +0000 (20:55 +0400)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 25 May 2008 06:58:33 +0000 (08:58 +0200)
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/head_64.S

index 7475b4c91f05efbea8cfda946ef419a5ce28eb3e..d8ed3259e6e4dccb0aa0b6feb529c74727b2c32e 100644 (file)
@@ -322,11 +322,11 @@ early_idt_ripmsg:
 ENTRY(name)
 
 /* Automate the creation of 1 to 1 mapping pmd entries */
-#define PMDS(START, PERM, COUNT)               \
-       i = 0 ;                                 \
-       .rept (COUNT) ;                         \
-       .quad   (START) + (i << 21) + (PERM) ;  \
-       i = i + 1 ;                             \
+#define PMDS(START, PERM, COUNT)                       \
+       i = 0 ;                                         \
+       .rept (COUNT) ;                                 \
+       .quad   (START) + (i << PMD_SHIFT) + (PERM) ;   \
+       i = i + 1 ;                                     \
        .endr
 
        /*