PERFORCE change 136588 for review
David E. O'Brien
obrien at FreeBSD.org
Sat Mar 1 18:09:35 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=136588
Change 136588 by obrien at 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
More information about the p4-projects
mailing list