Module Name:    src
Committed By:   matt
Date:           Tue Jan  4 08:21:19 UTC 2011

Modified Files:
        src/sys/uvm: uvm_map.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.293 -r1.294 src/sys/uvm/uvm_map.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_map.c
diff -u src/sys/uvm/uvm_map.c:1.293 src/sys/uvm/uvm_map.c:1.294
--- src/sys/uvm/uvm_map.c:1.293	Fri Sep 24 22:51:51 2010
+++ src/sys/uvm/uvm_map.c	Tue Jan  4 08:21:18 2011
@@ -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...

Reply via email to