diff options
author | jake <jake@FreeBSD.org> | 2002-06-24 15:48:02 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2002-06-24 15:48:02 +0000 |
commit | e102a9b6dd829c7b39358e1bed4ae6be3a6758d7 (patch) | |
tree | 1a54d6235cda96b2ca3034521ce9b0b528207189 /sys/i386 | |
parent | fcf509a309739f81379da3e12a817b78746521b8 (diff) | |
download | FreeBSD-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/i386')
-rw-r--r-- | sys/i386/i386/vm_machdep.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/i386/i386/vm_machdep.c b/sys/i386/i386/vm_machdep.c index a7e852a..5dc2e14 100644 --- a/sys/i386/i386/vm_machdep.c +++ b/sys/i386/i386/vm_machdep.c @@ -283,6 +283,12 @@ cpu_exit(td) } void +cpu_sched_exit(td) + register struct thread *td; +{ +} + +void cpu_wait(p) struct proc *p; { |