Ignore fake ttes in pmap_copy, its too hard to deal with them not having

a real vm_page right now.  This fixes a panic when processes with resident
device mappings fork, such as the X server.
This commit is contained in:
Jake Burkholder 2003-06-18 17:03:04 +00:00
parent ee9f05f121
commit 26f66ceae3

View File

@ -1373,6 +1373,8 @@ pmap_copy_tte(pmap_t src_pmap, pmap_t dst_pmap, struct tte *tp, vm_offset_t va)
vm_page_t m;
u_long data;
if ((tp->tte_data & TD_FAKE) != 0)
return (1);
if (tsb_tte_lookup(dst_pmap, va) == NULL) {
data = tp->tte_data &
~(TD_PV | TD_REF | TD_SW | TD_CV | TD_W);