Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jan 2010 00:07:48 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r201864 - head/lib/libthr/arch/mips/include
Message-ID:  <201001090007.o0907mfI033637@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sat Jan  9 00:07:47 2010
New Revision: 201864
URL: http://svn.freebsd.org/changeset/base/201864

Log:
  Merge r195129 from project/mips to head by hand:
  
  r195129 | gonzo | 2009-06-27 17:28:56 -0600 (Sat, 27 Jun 2009) | 2 lines
  - Use sysarch(2) in MIPS version of _tcb_set/_tcb_get

Modified:
  head/lib/libthr/arch/mips/include/pthread_md.h

Modified: head/lib/libthr/arch/mips/include/pthread_md.h
==============================================================================
--- head/lib/libthr/arch/mips/include/pthread_md.h	Sat Jan  9 00:07:46 2010	(r201863)
+++ head/lib/libthr/arch/mips/include/pthread_md.h	Sat Jan  9 00:07:47 2010	(r201864)
@@ -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?201001090007.o0907mfI033637>