X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/43866e378188c25dd1e2208016ab3cbeb086ae6c..55e303ae13a4cf49d70f2294092726f2fffb9ef2:/osfmk/kern/syscall_subr.c diff --git a/osfmk/kern/syscall_subr.c b/osfmk/kern/syscall_subr.c index dd4716262..413fc22be 100644 --- a/osfmk/kern/syscall_subr.c +++ b/osfmk/kern/syscall_subr.c @@ -197,7 +197,6 @@ thread_switch( int option, mach_msg_timeout_t option_time) { - register thread_t self = current_thread(); register thread_act_t hint_act = THR_ACT_NULL; /* @@ -217,7 +216,7 @@ thread_switch( if (thread_name != MACH_PORT_NULL) { ipc_port_t port; - if (ipc_port_translate_send(self->top_act->task->itk_space, + if (ipc_port_translate_send(current_task()->itk_space, thread_name, &port) == KERN_SUCCESS) { ip_reference(port); ip_unlock(port);