Commit a623bb58 authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman
Browse files

powerpc/8xx: Map IMMR with a huge page

parent 34536d78
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -118,17 +118,13 @@ static bool immr_is_mapped __initdata;

void __init mmu_mapin_immr(void)
{
	unsigned long p = PHYS_IMMR_BASE;
	unsigned long v = VIRT_IMMR_BASE;
	int offset;

	if (immr_is_mapped)
		return;

	immr_is_mapped = true;

	for (offset = 0; offset < IMMR_SIZE; offset += PAGE_SIZE)
		map_kernel_page(v + offset, p + offset, PAGE_KERNEL_NCG);
	__early_map_kernel_hugepage(VIRT_IMMR_BASE, PHYS_IMMR_BASE,
				    PAGE_KERNEL_NCG, MMU_PAGE_512K, true);
}

unsigned long __init mmu_mapin_ram(unsigned long base, unsigned long top)