pub fn spawn_task<P>( task: &Arc<Task<P>>, details_ptr: usize, scheduler: &Scheduler<P>, kernel_page_tables: &mut P::PageTable, ) -> Result<Handle, SpawnTaskError>where P: Platform,