From 1bb9dd50fe4fe21b60d07b01b10cbedb18a7f4b4 Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:33 +0100 Subject: [PATCH] Revert "microblaze: don't treat zero reserved memory regions as error" This reverts commit 4e833b217ea72ef5635c9e309e9f969dadc56b98. --- arch/microblaze/mm/init.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c index a2cd139c5..45da639bd 100755 --- a/arch/microblaze/mm/init.c +++ b/arch/microblaze/mm/init.c @@ -245,6 +245,11 @@ asmlinkage void __init mmu_init(void) { unsigned int kstart, ksize; + if (!memblock.reserved.cnt) { + pr_emerg("Error memory count\n"); + machine_restart(NULL); + } + if ((u32) memblock.memory.regions[0].size < 0x400000) { pr_emerg("Memory must be greater than 4MB\n"); machine_restart(NULL);