Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm Add a MD hook to indicate a change of vmspace due to...



details:   https://anonhg.NetBSD.org/src/rev/1eacf04e14be
branches:  trunk
changeset: 760384:1eacf04e14be
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Jan 04 08:21:18 2011 +0000

description:
Add a MD hook to indicate a change of vmspace due to exec.  (This is useful
to update any cpu flag due to a change to/from a 64bit and a 32bit address
space).  This can set the state needed for copyout/copyin before setregs
is invoked.

diffstat:

 sys/uvm/uvm_map.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 3fadec0c20e4 -r 1eacf04e14be sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Tue Jan 04 08:17:01 2011 +0000
+++ b/sys/uvm/uvm_map.c Tue Jan 04 08:21:18 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_map.c,v 1.293 2010/09/24 22:51:51 rmind Exp $      */
+/*     $NetBSD: uvm_map.c,v 1.294 2011/01/04 08:21:18 matt Exp $       */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.293 2010/09/24 22:51:51 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.294 2011/01/04 08:21:18 matt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_uvmhist.h"
@@ -4232,6 +4232,9 @@
        /* XXX cgd 960926: the sparc #ifdef should be a MD hook */
        kill_user_windows(l);   /* before stack addresses go away */
 #endif
+#ifdef __HAVE_CPU_VMSPACE_EXEC
+       cpu_vmspace_exec(l, start, end);
+#endif
 
        /*
         * see if more than one process is using this vmspace...



Home | Main Index | Thread Index | Old Index