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