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:
parent
f3f3baee3f
commit
2740cfb802
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user