|
|
@ -126,10 +126,8 @@ impl Thread {
|
|
|
|
pub unsafe fn new_init() -> Box<Thread> {
|
|
|
|
pub unsafe fn new_init() -> Box<Thread> {
|
|
|
|
Box::new(Thread {
|
|
|
|
Box::new(Thread {
|
|
|
|
context: Context::null(),
|
|
|
|
context: Context::null(),
|
|
|
|
kstack: KernelStack::new(),
|
|
|
|
// safety: other fields will never be used
|
|
|
|
clear_child_tid: 0,
|
|
|
|
.. core::mem::uninitialized()
|
|
|
|
// safety: this field will never be used
|
|
|
|
|
|
|
|
proc: core::mem::uninitialized(),
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|