diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2019-09-12 13:49:41 +0000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-11-25 21:45:43 +1100 |
commit | f2bb86937d86ebcb0e52f95b6d19aba1d850e601 (patch) | |
tree | d122d0465f97a8598f1f583b8ba880d06409f8b6 /arch/powerpc | |
parent | bf9c95e23324cbaf2e58fc3f0cbdc73137f2d1ca (diff) | |
download | linux-f2bb86937d86ebcb0e52f95b6d19aba1d850e601.tar.bz2 |
powerpc/fixmap: don't clear fixmap area in paging_init()
fixmap is intended to map things permanently like the IMMR region on
FSL SOC (8xx, 83xx, ...), so don't clear it when initialising paging()
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/41c99bc06394a6bc2888631cb98a3ed2ae281ddb.1568295907.git.christophe.leroy@c-s.fr
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/mm/mem.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index 7573002077a6..bf0c54b1f161 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c @@ -237,14 +237,6 @@ void __init paging_init(void) unsigned long long total_ram = memblock_phys_mem_size(); phys_addr_t top_of_ram = memblock_end_of_DRAM(); -#ifdef CONFIG_PPC32 - unsigned long v = __fix_to_virt(__end_of_fixed_addresses - 1); - unsigned long end = __fix_to_virt(FIX_HOLE); - - for (; v < end; v += PAGE_SIZE) - map_kernel_page(v, 0, __pgprot(0)); /* XXX gross */ -#endif - #ifdef CONFIG_HIGHMEM map_kernel_page(PKMAP_BASE, 0, __pgprot(0)); /* XXX gross */ pkmap_page_table = virt_to_kpte(PKMAP_BASE); |