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:
parent
ee9f05f121
commit
26f66ceae3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user