Revert "microblaze: don't treat zero reserved memory regions as error"
This reverts commit 4e833b217e
.
This commit is contained in:
parent
d4c68e1fc4
commit
1bb9dd50fe
1 changed files with 5 additions and 0 deletions
|
@ -245,6 +245,11 @@ asmlinkage void __init mmu_init(void)
|
||||||
{
|
{
|
||||||
unsigned int kstart, ksize;
|
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) {
|
if ((u32) memblock.memory.regions[0].size < 0x400000) {
|
||||||
pr_emerg("Memory must be greater than 4MB\n");
|
pr_emerg("Memory must be greater than 4MB\n");
|
||||||
machine_restart(NULL);
|
machine_restart(NULL);
|
||||||
|
|
Loading…
Reference in a new issue