From: Carlos O'Donell <carlos@baldric.uwo.ca>
To: John David Anglin <dave@hiauly1.hia.nrc.ca>
Cc: dave.anglin@nrc-cnrc.gc.ca, parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] Re: Found the r19 problem!
Date: Sun, 21 Sep 2003 15:16:53 -0400 [thread overview]
Message-ID: <20030921191653.GJ6963@systemhalted> (raw)
In-Reply-To: <200309211912.h8LJCd59011386@hiauly1.hia.nrc.ca>
On Sun, Sep 21, 2003 at 03:12:39PM -0400, John David Anglin wrote:
> Well that's why the restore is deleted. So, the clobber must go
> and r19 must be preserved across the asm(...). As I said, you can't
> clobber r19 when generating pic code. It's treated as fixed register,
> so clobbering it can lead to undefined behavior.
>
> If the syscall used r19, it could include a use of r19 in the asm.
> This would ensure the restore occurs before the syscall.
I'm going to stop writing r19 to the stack and tell gcc I'm using r4,
and then do a copy/copy to get r19 back.
c.
next prev parent reply other threads:[~2003-09-21 19:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-19 13:56 [parisc-linux] r19 (aka pic-register akak ltp) not restored on entry back to libc from libpthread? Carlos O'Donell
2003-09-19 16:56 ` John David Anglin
2003-09-19 17:51 ` Carlos O'Donell
2003-09-19 18:26 ` James Bottomley
2003-09-19 18:55 ` [parisc-linux] r19 (aka pic-register akak ltp) not restored on John David Anglin
2003-09-19 19:28 ` Carlos O'Donell
2003-09-19 20:10 ` John David Anglin
2003-09-21 15:45 ` [parisc-linux] Found the r19 problem! Carlos O'Donell
2003-09-21 16:39 ` [parisc-linux] " John David Anglin
2003-09-21 18:53 ` Carlos O'Donell
2003-09-21 18:55 ` Carlos O'Donell
2003-09-21 19:12 ` John David Anglin
2003-09-21 19:16 ` Carlos O'Donell [this message]
2003-09-21 19:18 ` John David Anglin
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=20030921191653.GJ6963@systemhalted \
--to=carlos@baldric.uwo.ca \
--cc=dave.anglin@nrc-cnrc.gc.ca \
--cc=dave@hiauly1.hia.nrc.ca \
--cc=parisc-linux@lists.parisc-linux.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.