Skip to content

Commit 0e192b9

Browse files
cyrillosKAGA-KOKO
authored andcommitted
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>
1 parent 05139d8 commit 0e192b9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎arch/x86/kernel/head_64.S‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,11 @@ early_idt_ripmsg:
322322
ENTRY(name)
323323

324324
/* Automate the creation of 1 to 1 mapping pmd entries */
325-
#define PMDS(START, PERM, COUNT) \
326-
i = 0 ; \
327-
.rept (COUNT) ; \
328-
.quad (START) + (i << 21) + (PERM) ; \
329-
i = i + 1 ; \
325+
#define PMDS(START, PERM, COUNT) \
326+
i = 0 ; \
327+
.rept (COUNT) ; \
328+
.quad (START) + (i << PMD_SHIFT) + (PERM) ; \
329+
i = i + 1 ; \
330330
.endr
331331

332332
/*

0 commit comments

Comments
 (0)