summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/aim
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/powerpc/aim
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/powerpc/aim')
-rw-r--r--sys/powerpc/aim/vm_machdep.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/powerpc/aim/vm_machdep.c b/sys/powerpc/aim/vm_machdep.c
index 12aeaf2..fe9cab7 100644
--- a/sys/powerpc/aim/vm_machdep.c
+++ b/sys/powerpc/aim/vm_machdep.c
@@ -209,6 +209,12 @@ cpu_exit(td)
}
void
+cpu_sched_exit(td)
+ register struct thread *td;
+{
+}
+
+void
cpu_wait(td)
struct proc *td;
{
OpenPOWER on IntegriCloud