summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/uvm/uvm_glue.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/uvm/uvm_glue.c b/sys/uvm/uvm_glue.c
index 9ac9098ed85..c7bfa5e21ab 100644
--- a/sys/uvm/uvm_glue.c
+++ b/sys/uvm/uvm_glue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_glue.c,v 1.43 2005/11/01 14:18:14 aaron Exp $ */
+/* $OpenBSD: uvm_glue.c,v 1.44 2006/05/25 22:42:22 miod Exp $ */
/* $NetBSD: uvm_glue.c,v 1.44 2001/02/06 19:54:44 eeh Exp $ */
/*
@@ -276,6 +276,11 @@ uvm_fork(p1, p2, shared, stack, stacksize, func, arg)
if (rv != KERN_SUCCESS)
panic("uvm_fork: uvm_fault_wire failed: %d", rv);
+#ifdef PMAP_UAREA
+ /* Tell the pmap this is a u-area mapping */
+ PMAP_UAREA((vaddr_t)up);
+#endif
+
/*
* p_stats currently points at a field in the user struct. Copy
* parts of p_stats, and zero out the rest.