sched: thread: implement cloning of userspace thread contexts

This commit is contained in:
2026-04-01 18:29:54 +01:00
parent 61050fd54b
commit 6c5bf2344f
4 changed files with 66 additions and 0 deletions
@@ -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,