From 58f7417063098be2634c4e43285e0213c856d633 Mon Sep 17 00:00:00 2001 From: is Date: Sun, 21 Nov 1999 17:04:05 +0000 Subject: [PATCH] Call the machine dependent code to do d-cache/i-cache synchronization, for architectures that need it. Without this, at least on Motorola 68040 and 68060 machines, the sigtramp regression test fails. --- sys/kern/kern_exec.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 924f27e3a125..d4a73493cd56 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_exec.c,v 1.103 1999/09/28 14:47:03 bouyer Exp $ */ +/* $NetBSD: kern_exec.c,v 1.104 1999/11/21 17:04:05 is Exp $ */ /*- * Copyright (C) 1993, 1994, 1996 Christopher G. Demetriou @@ -413,6 +413,10 @@ sys_execve(p, v, retval) p->p_sigacts->ps_sigcode = (char *)PS_STRINGS - szsigcode, szsigcode)) goto exec_abort; +#ifdef PMAP_NEED_PROCWR + /* This is code. Let the pmap do what is needed. */ + pmap_procwr(p, (vaddr_t)p->p_sigacts->ps_sigcode, szsigcode); +#endif } stopprofclock(p); /* stop profiling */