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>
This commit is contained in:
parent
05139d8fb4
commit
0e192b99d7
|
@ -322,11 +322,11 @@ early_idt_ripmsg:
|
||||||
ENTRY(name)
|
ENTRY(name)
|
||||||
|
|
||||||
/* Automate the creation of 1 to 1 mapping pmd entries */
|
/* Automate the creation of 1 to 1 mapping pmd entries */
|
||||||
#define PMDS(START, PERM, COUNT) \
|
#define PMDS(START, PERM, COUNT) \
|
||||||
i = 0 ; \
|
i = 0 ; \
|
||||||
.rept (COUNT) ; \
|
.rept (COUNT) ; \
|
||||||
.quad (START) + (i << 21) + (PERM) ; \
|
.quad (START) + (i << PMD_SHIFT) + (PERM) ; \
|
||||||
i = i + 1 ; \
|
i = i + 1 ; \
|
||||||
.endr
|
.endr
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue