X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/blobdiff_plain/353fa180f1e83ad2039c7ec1802cb85fb1f96a4e..9e6e869e8ae3b41257bc4cb2ef8565828e90ea41:/sys/platform/vkernel64/x86_64/vm_machdep.c diff --git a/sys/platform/vkernel64/x86_64/vm_machdep.c b/sys/platform/vkernel64/x86_64/vm_machdep.c index 2ff688276a..5191810cca 100644 --- a/sys/platform/vkernel64/x86_64/vm_machdep.c +++ b/sys/platform/vkernel64/x86_64/vm_machdep.c @@ -254,7 +254,7 @@ cpu_lwp_exit(void) { struct thread *td = curthread; struct pcb *pcb; - npxexit(); + pcb = td->td_pcb; /* Some i386 functionality was dropped */ @@ -289,23 +289,13 @@ cpu_lwp_exit(void) void cpu_thread_exit(void) { + npxexit(); curthread->td_switch = cpu_exit_switch; curthread->td_flags |= TDF_EXITING; lwkt_switch(); panic("cpu_thread_exit: lwkt_switch() unexpectedly returned"); } -/* - * Process Reaper. Called after the caller has acquired the thread's - * rwlock and removed it from the reap list. - */ -void -cpu_proc_wait(struct proc *p) -{ - /* drop per-process resources */ - pmap_dispose_proc(p); -} - int grow_stack(struct proc *p, u_long sp) {