summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormycroft <mycroft>2000-10-29 23:30:09 +0000
committermycroft <mycroft>2000-10-29 23:30:09 +0000
commite7cbb81655429beb7f845667c0e75d5b14d17f84 (patch)
tree1f415f117875e6e71f829d5686a229042c90b5aa
parentf7ce42f1106838b38dd9a279e2db41755f7bea27 (diff)
downloadpkgsrc-e7cbb81655429beb7f845667c0e75d5b14d17f84.tar.gz
Fix NSPR thread initialization for MIPS. (Similar issue to Alpha; we have to
set $t9 to the called function's address.)
-rw-r--r--www/mozilla/files/patch-sum4
-rw-r--r--www/mozilla/patches/patch-ad7
2 files changed, 6 insertions, 5 deletions
diff --git a/www/mozilla/files/patch-sum b/www/mozilla/files/patch-sum
index f5097bfcd52..a89441bec04 100644
--- a/www/mozilla/files/patch-sum
+++ b/www/mozilla/files/patch-sum
@@ -1,9 +1,9 @@
-$NetBSD: patch-sum,v 1.23 2000/10/29 22:59:32 mycroft Exp $
+$NetBSD: patch-sum,v 1.24 2000/10/29 23:30:09 mycroft Exp $
MD5 (patch-aa) = a07a4956a8c6a91fce0ef653b59c902f
MD5 (patch-ab) = dfa8ac0ffaac96293904adb6372c5b8d
MD5 (patch-ac) = e06e6cb1261f97e6fec8b04cdf4cb0a1
-MD5 (patch-ad) = 3bab27aefd274a609c901049f722bb41
+MD5 (patch-ad) = 1334bacae3e665904a29672e8f17261d
MD5 (patch-ae) = 925a6dc3b7354f0c82a7e2411463617e
MD5 (patch-af) = 316103ca86d2a079d940cff8102849f1
MD5 (patch-ag) = 6550d516cf5395f38bd11fc3845f8a8d
diff --git a/www/mozilla/patches/patch-ad b/www/mozilla/patches/patch-ad
index 352ac815611..82fbfc1f052 100644
--- a/www/mozilla/patches/patch-ad
+++ b/www/mozilla/patches/patch-ad
@@ -1,8 +1,8 @@
-$NetBSD: patch-ad,v 1.14 2000/10/28 18:55:25 mycroft Exp $
+$NetBSD: patch-ad,v 1.15 2000/10/29 23:30:09 mycroft Exp $
--- nsprpub/pr/include/md/_netbsd.h.orig Thu Jul 6 20:46:02 2000
+++ nsprpub/pr/include/md/_netbsd.h Thu Oct 26 07:32:35 2000
-@@ -70,39 +70,87 @@
+@@ -70,39 +70,88 @@
#define CONTEXT(_th) ((_th)->md.context)
@@ -63,12 +63,13 @@ $NetBSD: patch-ad,v 1.14 2000/10/28 18:55:25 mycroft Exp $
+}
+#define _MD_GET_SP(_thread) CONTEXT(_thread)[2]
+#endif
-+#ifdef __mips__ /* XXX UNTESTED */
++#ifdef __mips__
+#define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \
+{ \
+ sigsetjmp(CONTEXT(_thread), 1); \
+ CONTEXT(_thread)[32] = (unsigned char*) ((_sp) - 128); \
+ CONTEXT(_thread)[2] = (int) _main; \
++ CONTEXT(_thread)[28] = (int) _main; \
+ *status = PR_TRUE; \
+}
+#define _MD_GET_SP(_thread) CONTEXT(_thread)[32]