diff options
-rw-r--r-- | arch/x86/kernel/head_64.S | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S index 7475b4c91f05..d8ed3259e6e4 100644 --- a/arch/x86/kernel/head_64.S +++ b/arch/x86/kernel/head_64.S | |||
@@ -322,11 +322,11 @@ early_idt_ripmsg: | |||
322 | ENTRY(name) | 322 | ENTRY(name) |
323 | 323 | ||
324 | /* Automate the creation of 1 to 1 mapping pmd entries */ | 324 | /* Automate the creation of 1 to 1 mapping pmd entries */ |
325 | #define PMDS(START, PERM, COUNT) \ | 325 | #define PMDS(START, PERM, COUNT) \ |
326 | i = 0 ; \ | 326 | i = 0 ; \ |
327 | .rept (COUNT) ; \ | 327 | .rept (COUNT) ; \ |
328 | .quad (START) + (i << 21) + (PERM) ; \ | 328 | .quad (START) + (i << PMD_SHIFT) + (PERM) ; \ |
329 | i = i + 1 ; \ | 329 | i = i + 1 ; \ |
330 | .endr | 330 | .endr |
331 | 331 | ||
332 | /* | 332 | /* |