musl/arch/arm/pthread_arch.h
Rich Felker d5bde7babb "optimize" arm __pthread_self
actually this is just to avoid gcc being stupid and refusing to inline
the function version, even when the size cost is essentially identical
whether it's inlined or not.
2011-09-22 22:56:06 -04:00

5 lines
108 B
C

#define __pthread_self ((pthread_t (*)(void))0xffff0fe0)
#define CANCEL_REG_SP 16
#define CANCEL_REG_IP 18