diff options
author | mycroft <mycroft@pkgsrc.org> | 2000-10-23 17:40:06 +0000 |
---|---|---|
committer | mycroft <mycroft@pkgsrc.org> | 2000-10-23 17:40:06 +0000 |
commit | e88f07cf85806cbf12a42ecec5793f127f59a89a (patch) | |
tree | 9aff7f389b6f8eeb1cd8759aed7f4a6f34879665 /www | |
parent | e2ac9634c2bf6b90bda95a6ba33b9e4dc6929716 (diff) | |
download | pkgsrc-e88f07cf85806cbf12a42ecec5793f127f59a89a.tar.gz |
Adjust JB_SP_INDEX for PowerPC.
Allocate more space at the top of new stacks.
This makes nspr work on PowerPC (at least according to the tests).
Diffstat (limited to 'www')
-rw-r--r-- | www/mozilla/files/patch-sum | 3 | ||||
-rw-r--r-- | www/mozilla/patches/patch-ad | 25 |
2 files changed, 27 insertions, 1 deletions
diff --git a/www/mozilla/files/patch-sum b/www/mozilla/files/patch-sum index 3ec312fcf48..5fca8d8dea0 100644 --- a/www/mozilla/files/patch-sum +++ b/www/mozilla/files/patch-sum @@ -1,5 +1,6 @@ -$NetBSD: patch-sum,v 1.13 2000/10/14 09:24:46 martin Exp $ +$NetBSD: patch-sum,v 1.14 2000/10/23 17:40:06 mycroft Exp $ MD5 (patch-aa) = a07a4956a8c6a91fce0ef653b59c902f MD5 (patch-ab) = dfa8ac0ffaac96293904adb6372c5b8d MD5 (patch-ac) = e06e6cb1261f97e6fec8b04cdf4cb0a1 +MD5 (patch-ad) = 459e7b70961122090c2e6228a46ffcb6 diff --git a/www/mozilla/patches/patch-ad b/www/mozilla/patches/patch-ad new file mode 100644 index 00000000000..1eec0ab271e --- /dev/null +++ b/www/mozilla/patches/patch-ad @@ -0,0 +1,25 @@ +$NetBSD: patch-ad,v 1.11 2000/10/23 17:40:07 mycroft Exp $ + +--- nsprpub/pr/include/md/_netbsd.h.orig Mon Oct 23 17:05:49 2000 ++++ nsprpub/pr/include/md/_netbsd.h Mon Oct 23 15:58:45 2000 +@@ -70,8 +70,10 @@ + + #define CONTEXT(_th) ((_th)->md.context) + +-#if defined(__i386__) || defined(__sparc__) || defined(__m68k__) || defined(__powerpc__) ++#if defined(__i386__) || defined(__sparc__) || defined(__m68k__) + #define JB_SP_INDEX 2 ++#elif defined(__powerpc__) ++#define JB_SP_INDEX 3 + #elif defined(__mips__) + #define JB_SP_INDEX 4 + #elif defined(__alpha__) +@@ -101,7 +103,7 @@ + if (sigsetjmp(CONTEXT(_thread), 1)) { \ + _main(); \ + } \ +- _MD_GET_SP(_thread) = (unsigned char*) ((_sp) - 64); \ ++ _MD_GET_SP(_thread) = (unsigned char*) ((_sp) - 128); \ + } + + #define _MD_SWITCH_CONTEXT(_thread) \ |