]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/kern/pthread_shims.c
xnu-4570.51.1.tar.gz
[apple/xnu.git] / bsd / kern / pthread_shims.c
index c8e42fc8c7667693db36a2e402c8cae7e2f09925..66fa1d73e54453322058851d6cbd07dd0336643f 100644 (file)
@@ -146,6 +146,13 @@ pthread_returning_to_userspace(void)
        thread_exception_return();
 }
 
+__attribute__((noreturn))
+static void
+pthread_bootstrap_return(void)
+{
+       thread_bootstrap_return();
+}
+
 static uint32_t
 get_task_threadmax(void) {
        return task_threadmax;
@@ -616,7 +623,7 @@ static const struct pthread_callbacks_s pthread_callbacks = {
        .uthread_is_cancelled = uthread_is_cancelled,
 
        .thread_exception_return = pthread_returning_to_userspace,
-       .thread_bootstrap_return = thread_bootstrap_return,
+       .thread_bootstrap_return = pthread_bootstrap_return,
        .unix_syscall_return = unix_syscall_return,
 
        .absolutetime_to_microtime = absolutetime_to_microtime,