When compiling with SKI support, create the fake memory regions
when either the memory descriptor in the bootinfo is NULL or the descriptor count is 0.
This commit is contained in:
parent
febd72f843
commit
dea969f79f
@ -528,7 +528,7 @@ ia64_init(u_int64_t arg1, u_int64_t arg2)
|
||||
*/
|
||||
mdcount = bootinfo.bi_memmap_size / bootinfo.bi_memdesc_size;
|
||||
md = (EFI_MEMORY_DESCRIPTOR *) IA64_PHYS_TO_RR7(bootinfo.bi_memmap);
|
||||
if (!md) {
|
||||
if (md == NULL || mdcount == 0) {
|
||||
#ifdef SKI
|
||||
static EFI_MEMORY_DESCRIPTOR ski_md[2];
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user