Subject: kern_exec.c patch, see last message
To: None <tech-kern@netbsd.org>
From: Ignatios Souvatzis <is@jocelyn.rhein.de>
List: tech-kern
Date: 11/20/1999 23:25:00
PMAP_NEED_PROCWR and pmap_procwr() are defined in machine/pmap.h, if
the machine needs it. This was added before 1.4 to help debuggers, so 
no other change is needed.

	-is

Index: kern_exec.c
===================================================================
RCS file: /cvsroot/syssrc/sys/kern/kern_exec.c,v
retrieving revision 1.103
diff -u -r1.103 kern_exec.c
--- kern_exec.c	1999/09/28 14:47:03	1.103
+++ kern_exec.c	1999/11/20 22:01:28
@@ -413,6 +413,10 @@
 		    p->p_sigacts->ps_sigcode = (char *)PS_STRINGS - szsigcode,
 		    szsigcode))
 			goto exec_abort;
+#ifdef PMAP_NEED_PROCWR
+		/* This is code, do whats needed */
+		pmap_procwr(p, (vaddr_t)p->p_sigacts->ps_sigcode, szsigcode);
+#endif
 	}
 
 	stopprofclock(p);	/* stop profiling */