Bugzilla bug #40941: Checked in Linux/ia64 patch from Bill Nottingham
authorwtc%netscape.com
Sat, 09 Jun 2001 19:52:18 +0000
changeset 1936 ccaea6e28532f5535299bee5751b0729cf1ac44b
parent 1935 a245729a5b7879d81d0b1ae6f644fb72ccb90714
child 1940 d74fafff1a276314246838a35b5f15466a66b8aa
push idunknown
push userunknown
push dateunknown
bugs40941
Bugzilla bug #40941: Checked in Linux/ia64 patch from Bill Nottingham <notting@redhat.com>. It is for NSPR local threads, which we no longer use now that we have pthreads. I don't know if it works, but I check it in anyway so that it is not lost.
pr/include/md/_linux.h
--- a/pr/include/md/_linux.h
+++ b/pr/include/md/_linux.h
@@ -172,16 +172,26 @@ extern void _MD_CleanupBeforeExit(void);
 #define _MD_GET_SP_PTR(_t) &(_MD_GET_SP(_t))
 #define _MD_GET_FP_PTR(_t) ((void *) 0)
 #define _MD_SP_TYPE __ptr_t
 #endif /* defined(__GLIBC__) && __GLIBC__ >= 2 */
 
 /* XXX not sure if this is correct, or maybe it should be 17? */
 #define PR_NUM_GCREGS 9
 
+#elif defined(__ia64__)
+
+#define _MD_GET_SP(_t)      ((long *)((_t)->md.context[0].__jmpbuf)[0])
+#define _MD_SET_FP(_t, val)
+#define _MD_GET_SP_PTR(_t)  &(_MD_GET_SP(_t))
+#define _MD_GET_FP_PTR(_t)  ((void *) 0)
+#define _MD_SP_TYPE         long int
+
+#define PR_NUM_GCREGS       _JBLEN
+
 #elif defined(__mc68000__)
 /* m68k based Linux */
 
 /*
  * On the m68k, glibc still uses the old style sigjmp_buf, even
  * in glibc 2.0.7.
  */
 #if defined(__GLIBC__) && __GLIBC__ >= 2