diff options
author | mux <mux@FreeBSD.org> | 2002-11-22 23:57:02 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2002-11-22 23:57:02 +0000 |
commit | 8169a213d9a6bf39cd5d8997fca80feb42593c18 (patch) | |
tree | 7cbae531ab4775242ecb958ecd8e856d8a54d011 /sys/alpha | |
parent | da5ffde8ea63a508153b9f3385bf13689e9dfddc (diff) | |
download | FreeBSD-src-8169a213d9a6bf39cd5d8997fca80feb42593c18.zip FreeBSD-src-8169a213d9a6bf39cd5d8997fca80feb42593c18.tar.gz |
Under certain circumstances, we were calling kmem_free() from
i386 cpu_thread_exit(). This resulted in a panic with WITNESS
since we need to hold Giant to call kmem_free(), and we weren't
helding it anymore in cpu_thread_exit(). We now do this from a
new MD function, cpu_thread_dtor(), called by thread_dtor().
Approved by: re@
Suggested by: jhb
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/alpha/vm_machdep.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/alpha/alpha/vm_machdep.c b/sys/alpha/alpha/vm_machdep.c index 524daf5..2f86438 100644 --- a/sys/alpha/alpha/vm_machdep.c +++ b/sys/alpha/alpha/vm_machdep.c @@ -261,6 +261,11 @@ cpu_thread_exit(struct thread *td) } void +cpu_thread_dtor(struct thread *td) +{ +} + +void cpu_thread_setup(struct thread *td) { |