X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/bd504ef0e0b883cdd7917b73b3574eb9ce669905..39236c6e673c41db228275375ab7fdb0f837b292:/bsd/dev/i386/stubs.c 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 *