From owner-svn-src-projects@FreeBSD.ORG Sat Jun 27 23:28:57 2009 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05E691065670; Sat, 27 Jun 2009 23:28:57 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id ADBC38FC1C; Sat, 27 Jun 2009 23:28:56 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5RNSuak091483; Sat, 27 Jun 2009 23:28:56 GMT (envelope-from gonzo@svn.freebsd.org) Received: (from gonzo@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5RNSuYh091481; Sat, 27 Jun 2009 23:28:56 GMT (envelope-from gonzo@svn.freebsd.org) Message-Id: <200906272328.n5RNSuYh091481@svn.freebsd.org> From: Oleksandr Tymoshenko Date: Sat, 27 Jun 2009 23:28:56 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r195129 - projects/mips/lib/libthr/arch/mips/include X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jun 2009 23:28:57 -0000 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;