[PATCH v3 11/12] powerpc: wiiu: don't enforce flat memory
Ash Logan
ash at heyquark.com
Tue Jun 28 23:31:43 AEST 2022
pgtable_32.c:mapin_ram loops over each valid memory range, which means
non-contiguous memory just works.
Signed-off-by: Ash Logan <ash at heyquark.com>
---
arch/powerpc/mm/init_32.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c
index 693a3a7a9463..6cdb561c05c5 100644
--- a/arch/powerpc/mm/init_32.c
+++ b/arch/powerpc/mm/init_32.c
@@ -124,10 +124,10 @@ void __init MMU_init(void)
* lowmem_end_addr is initialized below.
*/
if (memblock.memory.cnt > 1) {
-#ifndef CONFIG_WII
+#if !defined(CONFIG_WII) && !defined(CONFIG_WIIU)
memblock_enforce_memory_limit(memblock.memory.regions[0].size);
pr_warn("Only using first contiguous memory region\n");
-#else
+#elif defined(CONFIG_WII)
wii_memory_fixups();
#endif
}
--
2.36.1
More information about the Linuxppc-dev
mailing list