summaryrefslogblamecommitdiff
path: root/arch/i386/bits/pthread.h
blob: c119dc8a9a4da8876bfa2b15fa7d8f11acbe8d33 (plain) (tree)
1
2
3
4
5
6
7
8
9





                              


                                                                   
                                                                                                        



                                                                     
                                                                                                          



                                                               
                                                                                                    




                                                                 
struct __ptcb {
	long __jb[7];
	int __dummy;
	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