svn commit: r195129 - projects/mips/lib/libthr/arch/mips/include

Oleksandr Tymoshenko gonzo at FreeBSD.org
Sat Jun 27 23:28:57 UTC 2009


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;


More information about the svn-src-projects mailing list