This function is called by syscalls::thread_spawn
(main: usize)
| 56 | |
| 57 | // This function is called by syscalls::thread_spawn |
| 58 | extern "C" fn thread_start(main: usize) { |
| 59 | // Convert address back to Box containing the Box<dyn FnOnce()> |
| 60 | // fat pointer, then call it. |
| 61 | unsafe {Box::from_raw(main as *mut Box<dyn FnOnce()>)()}; |
| 62 | } |
| 63 | Ok(()) |
| 64 | } |
nothing calls this directly
no outgoing calls
no test coverage detected