Don't abort SMAP processing after an entry of length 0

Length 0 is not special and should just be skipped.  This is the same
behaviour as i386.

Discussed with:	jhb@
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
emaste 2013-11-22 14:56:10 +00:00
parent f3f3baee3f
commit 2740cfb802

View File

@ -1336,7 +1336,7 @@ add_physmap_entry(uint64_t base, uint64_t length, vm_paddr_t *physmap,
physmap_idx = *physmap_idxp;
if (length == 0)
return (0);
return (1);
/*
* Find insertion point while checking for overlap. Start off by