From dea969f79fbb5926db50954d312850028a000b98 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Mon, 15 Oct 2001 07:58:27 +0000 Subject: [PATCH] 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. --- sys/ia64/ia64/machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/ia64/ia64/machdep.c b/sys/ia64/ia64/machdep.c index ea8c03e6e71f..2cd15c1edaa0 100644 --- a/sys/ia64/ia64/machdep.c +++ b/sys/ia64/ia64/machdep.c @@ -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]; /*