summaryrefslogtreecommitdiffstats
path: root/sys/alpha/alpha
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2002-06-24 15:48:02 +0000
committerjake <jake@FreeBSD.org>2002-06-24 15:48:02 +0000
commite102a9b6dd829c7b39358e1bed4ae6be3a6758d7 (patch)
tree1a54d6235cda96b2ca3034521ce9b0b528207189 /sys/alpha/alpha
parentfcf509a309739f81379da3e12a817b78746521b8 (diff)
downloadFreeBSD-src-e102a9b6dd829c7b39358e1bed4ae6be3a6758d7.zip
FreeBSD-src-e102a9b6dd829c7b39358e1bed4ae6be3a6758d7.tar.gz
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.
Diffstat (limited to 'sys/alpha/alpha')
-rw-r--r--sys/alpha/alpha/vm_machdep.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/alpha/alpha/vm_machdep.c b/sys/alpha/alpha/vm_machdep.c
index 4209cce..e57593c 100644
--- a/sys/alpha/alpha/vm_machdep.c
+++ b/sys/alpha/alpha/vm_machdep.c
@@ -248,6 +248,12 @@ cpu_exit(td)
}
void
+cpu_sched_exit(td)
+ register struct thread *td;
+{
+}
+
+void
cpu_wait(p)
struct proc *p;
{
OpenPOWER on IntegriCloud