summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2002-11-22 23:57:02 +0000
committermux <mux@FreeBSD.org>2002-11-22 23:57:02 +0000
commit8169a213d9a6bf39cd5d8997fca80feb42593c18 (patch)
tree7cbae531ab4775242ecb958ecd8e856d8a54d011 /sys/alpha
parentda5ffde8ea63a508153b9f3385bf13689e9dfddc (diff)
downloadFreeBSD-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.c5
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)
{
OpenPOWER on IntegriCloud