]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/dev/i386/stubs.c
xnu-2422.1.72.tar.gz
[apple/xnu.git] / bsd / dev / i386 / stubs.c
index ddc759c29b54cf2eb1f1f7458084f9c511aee40f..bf69ac8acd9a42ff6094290ecf3bd6df919826e6 100644 (file)
@@ -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 *