diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-05-25 22:42:23 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-05-25 22:42:23 +0000 |
commit | e54e9ace7dbdc620235ae69b728fdeea69bca5d3 (patch) | |
tree | 964bd2305b7d097b63aa599e179707d3f5f3e9c6 /sys/uvm/uvm_glue.c | |
parent | ccd6dc55e4ee96262a9111c415f98a7053500a38 (diff) |
Enable optional specific handling of the u-area in pmap via PMAP_UAREA if
defined; from NetBSD. Currently only used on xscale arm to use the mini data
cache for u area mappings instead of the main data cache.
Diffstat (limited to 'sys/uvm/uvm_glue.c')
-rw-r--r-- | sys/uvm/uvm_glue.c | 7 |
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. |