- Giant is no longer required by vm_thread_new().
This commit is contained in:
parent
aea8889fc4
commit
bca62663ab
@ -187,9 +187,7 @@ thread_init(void *mem, int size)
|
||||
struct thread *td;
|
||||
|
||||
td = (struct thread *)mem;
|
||||
mtx_lock(&Giant);
|
||||
vm_thread_new(td, 0);
|
||||
mtx_unlock(&Giant);
|
||||
cpu_thread_setup(td);
|
||||
td->td_turnstile = turnstile_alloc();
|
||||
td->td_sched = (struct td_sched *)&td[1];
|
||||
|
@ -187,9 +187,7 @@ thread_init(void *mem, int size)
|
||||
struct thread *td;
|
||||
|
||||
td = (struct thread *)mem;
|
||||
mtx_lock(&Giant);
|
||||
vm_thread_new(td, 0);
|
||||
mtx_unlock(&Giant);
|
||||
cpu_thread_setup(td);
|
||||
td->td_turnstile = turnstile_alloc();
|
||||
td->td_sched = (struct td_sched *)&td[1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user