Merge the change r255607 from amd64 to i386.
Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 1 week Approved by: re (gjb)
This commit is contained in:
parent
163fd5eca2
commit
06646d663a
@ -4062,6 +4062,8 @@ pmap_copy(pmap_t dst_pmap, pmap_t src_pmap, vm_offset_t dst_addr, vm_size_t len,
|
||||
continue;
|
||||
|
||||
if (srcptepaddr & PG_PS) {
|
||||
if ((addr & PDRMASK) != 0 || addr + NBPDR > end_addr)
|
||||
continue;
|
||||
if (dst_pmap->pm_pdir[ptepindex] == 0 &&
|
||||
((srcptepaddr & PG_MANAGED) == 0 ||
|
||||
pmap_pv_insert_pde(dst_pmap, addr, srcptepaddr &
|
||||
|
Loading…
Reference in New Issue
Block a user