summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc <devnull@localhost>1998-05-07 01:52:43 +0000
committerwtc <devnull@localhost>1998-05-07 01:52:43 +0000
commitc33e67cbbe9cda68559d6c7528d769bf0b3f5baa (patch)
tree87952758343c21da3bce55f56cc499e2d5f5e0e8
parent6cdd9b05911c2bf865c056671e09bc877344ae08 (diff)
downloadnspr-hg-c33e67cbbe9cda68559d6c7528d769bf0b3f5baa.tar.gz
The stack pointer is the 0th element in the jmp_buf.
-rw-r--r--pr/include/md/_darwin.h2
-rw-r--r--pr/include/md/_rhapsody.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/pr/include/md/_darwin.h b/pr/include/md/_darwin.h
index 44404ba5..b7b99482 100644
--- a/pr/include/md/_darwin.h
+++ b/pr/include/md/_darwin.h
@@ -50,7 +50,7 @@
#define CONTEXT(_th) ((_th)->md.context)
-#define _MD_GET_SP(_th) (_th)->md.context[2]
+#define _MD_GET_SP(_th) (_th)->md.context[0]
#define PR_NUM_GCREGS _JBLEN
/*
diff --git a/pr/include/md/_rhapsody.h b/pr/include/md/_rhapsody.h
index 44404ba5..b7b99482 100644
--- a/pr/include/md/_rhapsody.h
+++ b/pr/include/md/_rhapsody.h
@@ -50,7 +50,7 @@
#define CONTEXT(_th) ((_th)->md.context)
-#define _MD_GET_SP(_th) (_th)->md.context[2]
+#define _MD_GET_SP(_th) (_th)->md.context[0]
#define PR_NUM_GCREGS _JBLEN
/*