hv:panic if there is no memory map in multiboot info

add panic if there is no memory map info during booting.

Tracked-On: #1842
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
This commit is contained in:
Mingqiang Chi 2019-11-26 13:57:55 +08:00 committed by wenlingz
parent bd0dbd274d
commit 32b8d99f48
1 changed files with 2 additions and 0 deletions

View File

@ -154,6 +154,8 @@ void init_e820(void)
dev_dbg(ACRN_DBG_E820, "Base: 0x%016lx length: 0x%016lx",
mmap[i].baseaddr, mmap[i].length);
}
} else {
panic("no memory map found from multiboot info");
}
obtain_mem_range_info();