1*16543c49Schristos /* $NetBSD: lwp_private.h,v 1.1 2024/11/30 01:04:09 christos Exp $ */ 2*16543c49Schristos 3*16543c49Schristos #ifndef _HPPA_LWP_PRIVATE_H_ 4*16543c49Schristos #define _HPPA_LWP_PRIVATE_H_ 5*16543c49Schristos 6*16543c49Schristos #include <sys/cdefs.h> 7*16543c49Schristos #include <sys/tls.h> 8*16543c49Schristos 9*16543c49Schristos __BEGIN_DECLS 10*16543c49Schristos static __inline void * 11*16543c49Schristos __lwp_getprivate_fast(void) 12*16543c49Schristos { 13*16543c49Schristos register void *__tmp; 14*16543c49Schristos 15*16543c49Schristos __asm volatile("mfctl\t27 /* CR_TLS */, %0" : "=r" (__tmp)); 16*16543c49Schristos 17*16543c49Schristos return __tmp; 18*16543c49Schristos } 19*16543c49Schristos __END_DECLS 20*16543c49Schristos 21*16543c49Schristos #endif /* _HPPA_LWP_PRIVATE_H_ */ 22