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/sparc64 | |
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/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/vm_machdep.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/sparc64/sparc64/vm_machdep.c b/sys/sparc64/sparc64/vm_machdep.c index ed011e3..a3771d5 100644 --- a/sys/sparc64/sparc64/vm_machdep.c +++ b/sys/sparc64/sparc64/vm_machdep.c @@ -114,6 +114,11 @@ cpu_thread_exit(struct thread *td) } void +cpu_thread_dtor(struct thread *td) +{ +} + +void cpu_thread_setup(struct thread *td) { } |