X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=arch%2Fi386%2Fbits%2Fpthread.h;h=c119dc8a9a4da8876bfa2b15fa7d8f11acbe8d33;hp=7d19065dedc1f4b144e6bbf807e96fad83e0f062;hb=ed2911a11317729c1a13e779237fed736c676c1b;hpb=1355fdca7cb923c93f9011d8e9dcf49e1a67e537 diff --git a/arch/i386/bits/pthread.h b/arch/i386/bits/pthread.h index 7d19065d..c119dc8a 100644 --- a/arch/i386/bits/pthread.h +++ b/arch/i386/bits/pthread.h @@ -4,3 +4,22 @@ struct __ptcb { struct __ptcb *__next; void *__ptrs[3]; }; + +static inline void __pthread_register_cancel_2(struct __ptcb *__cb) +{ + __asm__ __volatile__( "call __pthread_register_cancel" : : "a"(__cb) : "ecx", "edx", "memory" ); +} + +static inline void __pthread_unregister_cancel_2(struct __ptcb *__cb) +{ + __asm__ __volatile__( "call __pthread_unregister_cancel" : : "a"(__cb) : "ecx", "edx", "memory" ); +} + +static inline void __pthread_unwind_next_2(struct __ptcb *__cb) +{ + __asm__ __volatile__( "call __pthread_unwind_next" : : "a"(__cb) : "ecx", "edx", "memory" ); +} + +#define __pthread_register_cancel __pthread_register_cancel_2 +#define __pthread_unregister_cancel __pthread_unregister_cancel_2 +#define __pthread_unwind_next __pthread_unwind_next_2