diff options
author | marcel <marcel@FreeBSD.org> | 2001-10-15 07:58:27 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2001-10-15 07:58:27 +0000 |
commit | 1dc835d4bd3a7c454ba73d75fb5e2913fee206ba (patch) | |
tree | 6b684b00fee1d6c923acb6f4d06a2f702304f679 /sys | |
parent | e63461ebd8b148fd51363b71e2748b6cb138e3f6 (diff) | |
download | FreeBSD-src-1dc835d4bd3a7c454ba73d75fb5e2913fee206ba.zip FreeBSD-src-1dc835d4bd3a7c454ba73d75fb5e2913fee206ba.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ia64/ia64/machdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/ia64/machdep.c b/sys/ia64/ia64/machdep.c index ea8c03e..2cd15c1 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]; /* |