Revert "microblaze: don't treat zero reserved memory regions as error"

This reverts commit 4e833b217e.
This commit is contained in:
Ksawlii 2024-11-24 00:23:33 +01:00
parent d4c68e1fc4
commit 1bb9dd50fe

View file

@ -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);