From e54e9ace7dbdc620235ae69b728fdeea69bca5d3 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 25 May 2006 22:42:23 +0000 Subject: 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. --- sys/uvm/uvm_glue.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys/uvm/uvm_glue.c') 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. -- cgit v1.2.3