Date: Sat, 1 Mar 2008 18:09:34 GMT From: "David E. O'Brien" <obrien@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 136588 for review Message-ID: <200803011809.m21I9YMN059664@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=136588 Change 136588 by obrien@obrien_trang on 2008/03/01 18:09:13 More additions to libthr to hopefully set direction to match Juniper's code (if its not found too upsetting to go in this direction). Obtained from: Juniper Networks Affected files ... .. //depot/projects/mips2-jnpr/src/lib/libthr/arch/mips/include/pthread_md.h#4 edit .. //depot/projects/mips2-jnpr/src/sys/mips/include/sysarch.h#3 edit Differences ... ==== //depot/projects/mips2-jnpr/src/lib/libthr/arch/mips/include/pthread_md.h#4 (text+ko) ==== @@ -60,7 +60,7 @@ static __inline void _tcb_set(struct tcb *tcb) { - /* XXXMIPS: *((struct tcb **)ARM_TP_ADDRESS) = tcb; */ + mips_tcb_set(tcb); } /* @@ -69,8 +69,7 @@ static __inline struct tcb * _tcb_get(void) { - /* define in sys/mips/include/sysarch.h */ - return /*(mips_tcb_get())*/ NULL; + return (mips_tcb_get()); } extern struct pthread *_thr_initial; ==== //depot/projects/mips2-jnpr/src/sys/mips/include/sysarch.h#3 (text+ko) ==== @@ -38,6 +38,13 @@ #ifndef _KERNEL #include <sys/cdefs.h> +#if 0 +/* Something useful for each MIPS platform. */ +#else$ +#define mips_tcb_set(tcb) NULL$ +#define mips_tcb_get() NULL$ +#endif /* _MIPS_ARCH_XLR */$ + __BEGIN_DECLS int sysarch(int, void *); __END_DECLS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803011809.m21I9YMN059664>
