summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/head_64.S
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2008-05-13 20:55:40 +0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-25 08:58:33 +0200
commit0e192b99d7d09f08b445c31ee7c7f3d0bfb27345 (patch)
tree6debb50682661428b79740b85e54e7e918a54bed /arch/x86/kernel/head_64.S
parent05139d8fb445d9a3569071af1c5920fc46191b7b (diff)
downloadop-kernel-dev-0e192b99d7d09f08b445c31ee7c7f3d0bfb27345.zip
op-kernel-dev-0e192b99d7d09f08b445c31ee7c7f3d0bfb27345.tar.gz
x86: head_64.S cleanup - use PMD_SHIFT instead of numeric constant
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/head_64.S')
-rw-r--r--arch/x86/kernel/head_64.S10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S
index 7475b4c..d8ed325 100644
--- a/arch/x86/kernel/head_64.S
+++ b/arch/x86/kernel/head_64.S
@@ -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
/*
OpenPOWER on IntegriCloud