From 26f66ceae35fae5a2732eaed439123f88a4032da Mon Sep 17 00:00:00 2001 From: Jake Burkholder Date: Wed, 18 Jun 2003 17:03:04 +0000 Subject: [PATCH] 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. --- sys/sparc64/sparc64/pmap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/sparc64/sparc64/pmap.c b/sys/sparc64/sparc64/pmap.c index d8b813e350ca..8a7b1da48dbe 100644 --- a/sys/sparc64/sparc64/pmap.c +++ b/sys/sparc64/sparc64/pmap.c @@ -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);