diff options
| author | Alan Cox <alc@FreeBSD.org> | 2003-06-14 23:23:55 +0000 |
|---|---|---|
| committer | Alan Cox <alc@FreeBSD.org> | 2003-06-14 23:23:55 +0000 |
| commit | 49a2507bd1c2d72eef3d9c9d12c9d0aeef9f3f7b (patch) | |
| tree | 5b005cceb283a32d0b4cb30493fc1a788fe8a46b /sys/kern/kern_thread.c | |
| parent | da02c8c47e9c31afff0cce94859bb82b812942e0 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_thread.c')
| -rw-r--r-- | sys/kern/kern_thread.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index bb4e3f0819d8..32c755a7dc7b 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$"); #include <sys/ucontext.h> #include <vm/vm.h> +#include <vm/vm_extern.h> #include <vm/vm_object.h> #include <vm/pmap.h> #include <vm/uma.h> @@ -185,7 +186,7 @@ thread_init(void *mem, int size) td = (struct thread *)mem; mtx_lock(&Giant); - pmap_new_thread(td, 0); + vm_thread_new(td, 0); mtx_unlock(&Giant); cpu_thread_setup(td); td->td_sched = (struct td_sched *)&td[1]; @@ -200,7 +201,7 @@ thread_fini(void *mem, int size) struct thread *td; td = (struct thread *)mem; - pmap_dispose_thread(td); + vm_thread_dispose(td); } /* |
