2011-02-12 00:22:29 -05:00
|
|
|
struct __ptcb {
|
|
|
|
long __jb[7];
|
|
|
|
int __dummy;
|
|
|
|
struct __ptcb *__next;
|
|
|
|
void *__ptrs[3];
|
|
|
|
};
|
2011-03-25 22:13:57 -04:00
|
|
|
|
|
|
|
static inline void __pthread_register_cancel_2(struct __ptcb *__cb)
|
|
|
|
{
|
2011-04-17 11:43:03 -04:00
|
|
|
__asm__ __volatile__( "call __pthread_register_cancel" : : "a"(__cb) : "ecx", "edx", "memory" );
|
2011-03-25 22:13:57 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
static inline void __pthread_unregister_cancel_2(struct __ptcb *__cb)
|
|
|
|
{
|
2011-04-17 11:43:03 -04:00
|
|
|
__asm__ __volatile__( "call __pthread_unregister_cancel" : : "a"(__cb) : "ecx", "edx", "memory" );
|
2011-03-25 22:13:57 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
static inline void __pthread_unwind_next_2(struct __ptcb *__cb)
|
|
|
|
{
|
2011-04-17 11:43:03 -04:00
|
|
|
__asm__ __volatile__( "call __pthread_unwind_next" : : "a"(__cb) : "ecx", "edx", "memory" );
|
2011-03-25 22:13:57 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
#define __pthread_register_cancel __pthread_register_cancel_2
|
|
|
|
#define __pthread_unregister_cancel __pthread_unregister_cancel_2
|
|
|
|
#define __pthread_unwind_next __pthread_unwind_next_2
|