Date: Sat, 27 Jun 2009 23:28:56 +0000 (UTC) From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r195129 - projects/mips/lib/libthr/arch/mips/include Message-ID: <200906272328.n5RNSuYh091481@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gonzo Date: Sat Jun 27 23:28:56 2009 New Revision: 195129 URL: http://svn.freebsd.org/changeset/base/195129 Log: - Use sysarch(2) in MIPS version of _tcb_set/_tcb_get Modified: projects/mips/lib/libthr/arch/mips/include/pthread_md.h Modified: projects/mips/lib/libthr/arch/mips/include/pthread_md.h ============================================================================== --- projects/mips/lib/libthr/arch/mips/include/pthread_md.h Sat Jun 27 23:27:41 2009 (r195128) +++ projects/mips/lib/libthr/arch/mips/include/pthread_md.h Sat Jun 27 23:28:56 2009 (r195129) @@ -60,7 +60,8 @@ void _tcb_dtor(struct tcb *); static __inline void _tcb_set(struct tcb *tcb) { - mips_tcb_set(tcb); + + sysarch(MIPS_SET_TLS, tcb); } /* @@ -69,7 +70,10 @@ _tcb_set(struct tcb *tcb) static __inline struct tcb * _tcb_get(void) { - return (mips_tcb_get()); + void *tcb; + + sysarch(MIPS_GET_TLS, &tcb); + return tcb; } extern struct pthread *_thr_initial;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906272328.n5RNSuYh091481>