Re: input constraints in atomic.h too loose ?

"Carlos O'Donell" <[email protected]>
Newsgroups gmane.linux.ports.hppa
Message-ID <[email protected]>
On 2/11/07, John David Anglin <[email protected]> wrote:
> > They are not global. They are local variables which are the rvalue in
> > an assignment to something else.
>
> Ok, then a register should be fine except you may have to make sure
> that you have the appropriate clobbers for the syscall.

What would be even more clever is to write:

register unsigned long lws_ret asm ("r28");
register unsigned long lws_errno asm ("r21");

Use "=r" in the output constraint, and remove these from the clobber.

c.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.