diff options
author | imp <imp@FreeBSD.org> | 2010-01-09 00:07:47 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2010-01-09 00:07:47 +0000 |
commit | c27b492e47812e2bbdc7bb5e11918c36861f7466 (patch) | |
tree | a397a49493d86fc814871eddba2701e54d7a33ca /lib/libthr/arch | |
parent | f0d3132729cac44d61e22f93e22f6b37fe7c48ae (diff) | |
download | FreeBSD-src-c27b492e47812e2bbdc7bb5e11918c36861f7466.zip FreeBSD-src-c27b492e47812e2bbdc7bb5e11918c36861f7466.tar.gz |
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
Diffstat (limited to 'lib/libthr/arch')
-rw-r--r-- | lib/libthr/arch/mips/include/pthread_md.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libthr/arch/mips/include/pthread_md.h b/lib/libthr/arch/mips/include/pthread_md.h index 34e58c6..24139a3 100644 --- a/lib/libthr/arch/mips/include/pthread_md.h +++ b/lib/libthr/arch/mips/include/pthread_md.h @@ -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; |