From: Keith Owens <kaos@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] [patch] 2.4.21-pre5 ia64 unwind.c - allow unw_access_gr(r0)
Date: Fri, 14 Mar 2003 04:37:46 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590709806091@msgid-missing> (raw)
Patch is against 2.4.21-pre5 + ia64-021210 + unwind patches from bk
tree (it would be nice to have a released 2.4.21-pre5-ia64 version).
The patch allows unw_access_gr() to read from r0, to support unwind
directives such as .save ar.pfs,r0 and .save rp,r0.
diff -urN 2.4.21-pre5-ia64/arch/ia64/kernel/unwind.c 2.4.21-pre5-ia64/arch/ia64/kernel/unwind.c
--- 2.4.21-pre5-ia64/arch/ia64/kernel/unwind.c Fri Mar 14 15:24:18 2003
+++ 2.4.21-pre5-ia64/arch/ia64/kernel/unwind.c Fri Mar 14 15:23:17 2003
@@ -253,6 +253,11 @@
struct pt_regs *pt;
if ((unsigned) regnum - 1 >= 127) {
+ if (regnum = 0 && !write) {
+ *val = 0; /* read r0 always returns 0 */
+ *nat = 0;
+ return 0;
+ }
UNW_DPRINT(0, "unwind.%s: trying to access non-existent r%u\n",
__FUNCTION__, regnum);
return -1;
next reply other threads:[~2003-03-14 4:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-14 4:37 Keith Owens [this message]
2003-03-14 19:26 ` [Linux-ia64] [patch] 2.4.21-pre5 ia64 unwind.c - allow unw_access_gr(r0) David Mosberger
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=marc-linux-ia64-105590709806091@msgid-missing \
--to=kaos@sgi.com \
--cc=linux-ia64@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox