Apparently something down in the guts of vm/uvm still needs giant

Obtained from:	 mini via P4 KSE tree.
This commit is contained in:
Julian Elischer 2002-09-14 06:23:43 +00:00
parent 58616b1c69
commit e6e24ff9cd
2 changed files with 4 additions and 0 deletions

View File

@ -152,7 +152,9 @@ thread_init(void *mem, int size)
("size mismatch: %d != %d\n", size, (int)sizeof(struct thread)));
td = (struct thread *)mem;
mtx_lock(&Giant);
pmap_new_thread(td);
mtx_unlock(&Giant);
cpu_thread_setup(td);
cached_threads++; /* XXXSMP */
allocated_threads++; /* XXXSMP */

View File

@ -152,7 +152,9 @@ thread_init(void *mem, int size)
("size mismatch: %d != %d\n", size, (int)sizeof(struct thread)));
td = (struct thread *)mem;
mtx_lock(&Giant);
pmap_new_thread(td);
mtx_unlock(&Giant);
cpu_thread_setup(td);
cached_threads++; /* XXXSMP */
allocated_threads++; /* XXXSMP */