Skip to content

Commit f2bb869

Browse files
chleroympe
authored andcommitted
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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/41c99bc06394a6bc2888631cb98a3ed2ae281ddb.1568295907.git.christophe.leroy@c-s.fr
1 parent bf9c95e commit f2bb869

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

arch/powerpc/mm/mem.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,6 @@ void __init paging_init(void)
237237
unsigned long long total_ram = memblock_phys_mem_size();
238238
phys_addr_t top_of_ram = memblock_end_of_DRAM();
239239

240-
#ifdef CONFIG_PPC32
241-
unsigned long v = __fix_to_virt(__end_of_fixed_addresses - 1);
242-
unsigned long end = __fix_to_virt(FIX_HOLE);
243-
244-
for (; v < end; v += PAGE_SIZE)
245-
map_kernel_page(v, 0, __pgprot(0)); /* XXX gross */
246-
#endif
247-
248240
#ifdef CONFIG_HIGHMEM
249241
map_kernel_page(PKMAP_BASE, 0, __pgprot(0)); /* XXX gross */
250242
pkmap_page_table = virt_to_kpte(PKMAP_BASE);

0 commit comments

Comments
 (0)