X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/2d21ac55c334faf3a56e5634905ed6987fc787d4..143464d58d2bd6378e74eec636961ceb0d32fb91:/bsd/dev/i386/stubs.c?ds=sidebyside diff --git a/bsd/dev/i386/stubs.c b/bsd/dev/i386/stubs.c index ddc759c29..bf69ac8ac 100644 --- a/bsd/dev/i386/stubs.c +++ b/bsd/dev/i386/stubs.c @@ -120,17 +120,9 @@ copywithin(void *src, void *dst, size_t count) void * get_bsduthreadarg(thread_t th) { - void *arg_ptr; -struct uthread *ut; - + struct uthread *ut; ut = get_bsdthread_info(th); - - if (ml_thread_is64bit(th) == TRUE) - arg_ptr = (void *)saved_state64(find_user_regs(th)); - else - arg_ptr = (void *)(ut->uu_arg); - - return(arg_ptr); + return ut->uu_ap; } int *