sched: thread: implement cloning of userspace thread contexts
This commit is contained in:
@@ -31,6 +31,12 @@ extern kern_status_t ml_thread_prepare_user_context(
|
||||
virt_addr_t *kernel_sp,
|
||||
const uintptr_t *args,
|
||||
size_t nr_args);
|
||||
/* prepare the stack so that ml_thread_switch_user can jump to usermode
|
||||
* with the specified register context */
|
||||
extern kern_status_t ml_thread_clone_user_context(
|
||||
const struct ml_cpu_context *ctx,
|
||||
uintptr_t return_value,
|
||||
virt_addr_t *kernel_sp);
|
||||
|
||||
extern kern_status_t ml_thread_config_get(
|
||||
struct thread *thread,
|
||||
|
||||
Reference in New Issue
Block a user