Commit 07fdd662 authored by Heiko Carstens's avatar Heiko Carstens Committed by Vasily Gorbik

s390/mm: rename POPULATE_ONE2ONE to POPULATE_DIRECT

Architectures generally use the "direct map" wording for mapping the whole
physical memory. Use that wording as well in arch/s390/boot/vmem.c, instead
of "one to one" in order to avoid confusion.

This also matches what is already done in arch/s390/mm/vmem.c.
Reviewed-by: default avatarAlexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent d24e18ef
...@@ -19,7 +19,7 @@ unsigned long __bootdata_preserved(s390_invalid_asce); ...@@ -19,7 +19,7 @@ unsigned long __bootdata_preserved(s390_invalid_asce);
enum populate_mode { enum populate_mode {
POPULATE_NONE, POPULATE_NONE,
POPULATE_ONE2ONE, POPULATE_DIRECT,
POPULATE_ABS_LOWCORE, POPULATE_ABS_LOWCORE,
#ifdef CONFIG_KASAN #ifdef CONFIG_KASAN
POPULATE_KASAN_MAP_SHADOW, POPULATE_KASAN_MAP_SHADOW,
...@@ -237,7 +237,7 @@ static unsigned long _pa(unsigned long addr, unsigned long size, enum populate_m ...@@ -237,7 +237,7 @@ static unsigned long _pa(unsigned long addr, unsigned long size, enum populate_m
switch (mode) { switch (mode) {
case POPULATE_NONE: case POPULATE_NONE:
return -1; return -1;
case POPULATE_ONE2ONE: case POPULATE_DIRECT:
return addr; return addr;
case POPULATE_ABS_LOWCORE: case POPULATE_ABS_LOWCORE:
return __abs_lowcore_pa(addr); return __abs_lowcore_pa(addr);
...@@ -404,9 +404,9 @@ void setup_vmem(unsigned long asce_limit) ...@@ -404,9 +404,9 @@ void setup_vmem(unsigned long asce_limit)
* To prevent creation of a large page at address 0 first map * To prevent creation of a large page at address 0 first map
* the lowcore and create the identity mapping only afterwards. * the lowcore and create the identity mapping only afterwards.
*/ */
pgtable_populate(0, sizeof(struct lowcore), POPULATE_ONE2ONE); pgtable_populate(0, sizeof(struct lowcore), POPULATE_DIRECT);
for_each_physmem_usable_range(i, &start, &end) for_each_physmem_usable_range(i, &start, &end)
pgtable_populate(start, end, POPULATE_ONE2ONE); pgtable_populate(start, end, POPULATE_DIRECT);
pgtable_populate(__abs_lowcore, __abs_lowcore + sizeof(struct lowcore), pgtable_populate(__abs_lowcore, __abs_lowcore + sizeof(struct lowcore),
POPULATE_ABS_LOWCORE); POPULATE_ABS_LOWCORE);
pgtable_populate(__memcpy_real_area, __memcpy_real_area + PAGE_SIZE, pgtable_populate(__memcpy_real_area, __memcpy_real_area + PAGE_SIZE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment