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
This commit is contained in:
Warner Losh 2010-01-09 00:07:47 +00:00
parent 52e0ea7a0d
commit b543d9ad75
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=201864

View File

@ -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;