[−][src]Function sunrise_kernel::syscalls::create_thread
pub fn create_thread(
ip: usize,
arg: usize,
sp: usize,
_priority: u32,
_processor_id: u32
) -> Result<usize, UserspaceError>
Creates a thread in the current process. The thread can then be started with the svcStartThread.
Params
ip
the entry point of the thread,arg
the initial argument of the thread (passed in eax),sp
the top of the stack,priority
ignored,processor_id
ignored,
Returns
A thread_handle to the created thread.