x86_64: thread: copy fs- and gs-base pointers to cloned thread context
This commit is contained in:
@@ -34,7 +34,9 @@ extern kern_status_t ml_thread_prepare_user_context(
|
||||
/* 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,
|
||||
const struct ml_cpu_context *src_regs,
|
||||
const struct ml_thread *src_ml,
|
||||
struct ml_thread *dest_ml,
|
||||
uintptr_t return_value,
|
||||
virt_addr_t *kernel_sp);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user