From e102a9b6dd829c7b39358e1bed4ae6be3a6758d7 Mon Sep 17 00:00:00 2001 From: jake Date: Mon, 24 Jun 2002 15:48:02 +0000 Subject: Add an MD callout like cpu_exit, but which is called after sched_lock is obtained, when all other scheduling activity is suspended. This is needed on sparc64 to deactivate the vmspace of the exiting process on all cpus. Otherwise if another unrelated process gets the exact same vmspace structure allocated to it (same address), its address space will not be activated properly. This seems to fix some spontaneous signal 11 problems with smp on sparc64. --- sys/kern/kern_exit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/kern') diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index d35b3e1..fab9437 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -448,6 +448,7 @@ exit1(td, rv) binuptime(PCPU_PTR(switchtime)); PCPU_SET(switchticks, ticks); + cpu_sched_exit(td); cpu_throw(); panic("exit1"); } -- cgit v1.1