From: jose.marchesi@oracle.com (Jose E. Marchesi)
To: sparclinux@vger.kernel.org
Subject: Re: [PATCH] silo: Add 64-bit support
Date: Wed, 30 Nov 2016 15:55:29 +0000 [thread overview]
Message-ID: <87inr5kln2.fsf@oracle.com> (raw)
In-Reply-To: <20161124173330.3087-1-glaubitz@physik.fu-berlin.de>
Two more caveats in common/jmp.S..
diff --git a/common/jmp.S b/common/jmp.S
index 3bc8c94..a446d78 100644
--- a/common/jmp.S
+++ b/common/jmp.S
@@ -18,7 +18,13 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA. */
-#define _SV save %sp, -0x40, %sp
+#if __WORDSIZE = 32
+# define STACK_BIAS 0
+#else
+# define STACK_BIAS 2047
+#endif
+
+#define _SV save %sp, -STACK_BIAS-0x40, %sp
#define _RV restore
#define FLUSH_ALL_WINDOWS \
_SV; _SV; _SV; _SV; _SV; _SV; _SV; \
@@ -46,7 +52,7 @@ __longjmp:
FLUSH_ALL_WINDOWS
ld [%o0], %o7 /* Return PC. */
ld [%o0 + 4], %fp /* Saved SP. */
#if __WORDSIZE = 32
ld [%o0], %o7 /* Return PC. */
ld [%o0 + 4], %fp /* Saved SP. */
#else
ldx [%o0], %o7 /* Return PC. */
ldx [%o0 + 8], %fp /* Saved SP. */
#endif
and also in the corresponding stores in setjmp:
#if __WORDSIZE = 32
st %o7, [%o0]
st %sp, [%o0 + 4]
#else
stx %o7, [%o0]
stx %sp, [%o0 + 8]
#endif
prev parent reply other threads:[~2016-11-30 15:55 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-24 17:33 [PATCH] silo: Add 64-bit support John Paul Adrian Glaubitz
2016-11-24 17:33 ` John Paul Adrian Glaubitz
2016-11-24 17:43 ` alexmcwhirter
2016-11-24 18:05 ` John Paul Adrian Glaubitz
2016-11-24 21:23 ` Aaro Koskinen
2016-11-24 21:51 ` John Paul Adrian Glaubitz
2016-11-24 22:05 ` Aaro Koskinen
2016-11-24 22:26 ` John Paul Adrian Glaubitz
2016-11-24 22:32 ` James Clarke
2016-11-24 22:35 ` John Paul Adrian Glaubitz
2016-11-24 22:51 ` Aaro Koskinen
2016-11-24 22:53 ` John Paul Adrian Glaubitz
2016-11-24 22:59 ` John Paul Adrian Glaubitz
2016-11-25 16:43 ` David Miller
2016-11-25 16:44 ` David Miller
2016-11-25 16:55 ` John Paul Adrian Glaubitz
2016-11-25 21:22 ` Sam Ravnborg
2016-11-26 12:21 ` John Paul Adrian Glaubitz
2016-11-26 17:27 ` Jose E. Marchesi
2016-11-30 15:55 ` Jose E. Marchesi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87inr5kln2.fsf@oracle.com \
--to=jose.marchesi@oracle.com \
--cc=sparclinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.