Re: register long sp asm("r1") incorrect

2010-02-19 Thread Pavel Machek
On Mon 2010-02-15 14:15:17, H. Peter Anvin wrote: > On 02/15/2010 01:04 PM, Benjamin Herrenschmidt wrote: > > > > It's true that most other use of it we have are global scope (local_paca > > in r13, glibc use of r2/r13, etc...) afaik, but since r1 itself is the > > stack pointer always, I think th

Re: register long sp asm("r1") incorrect

2010-02-15 Thread H. Peter Anvin
On 02/15/2010 01:04 PM, Benjamin Herrenschmidt wrote: > > It's true that most other use of it we have are global scope (local_paca > in r13, glibc use of r2/r13, etc...) afaik, but since r1 itself is the > stack pointer always, I think they pretty much guarantee it works. > It should work, becau

Re: register long sp asm("r1") incorrect

2010-02-15 Thread Benjamin Herrenschmidt
On Mon, 2010-02-15 at 21:28 +0100, Pavel Machek wrote: > On Tue 2010-02-16 06:59:52, Benjamin Herrenschmidt wrote: > > On Mon, 2010-02-15 at 08:34 +0100, Pavel Machek wrote: > > > > On Tue, 2010-02-09 at 16:24 +0100, Pavel Machek wrote: > > > > > ...according to gcc docs, sp should be global, or pl

Re: register long sp asm("r1") incorrect

2010-02-15 Thread Pavel Machek
On Tue 2010-02-16 06:59:52, Benjamin Herrenschmidt wrote: > On Mon, 2010-02-15 at 08:34 +0100, Pavel Machek wrote: > > > On Tue, 2010-02-09 at 16:24 +0100, Pavel Machek wrote: > > > > ...according to gcc docs, sp should be global, or placement in > > > > register is not guaranteed (except at asm bo

Re: register long sp asm("r1") incorrect

2010-02-15 Thread Benjamin Herrenschmidt
On Mon, 2010-02-15 at 08:34 +0100, Pavel Machek wrote: > > On Tue, 2010-02-09 at 16:24 +0100, Pavel Machek wrote: > > > ...according to gcc docs, sp should be global, or placement in > > > register is not guaranteed (except at asm boundaries, but there > are > > > none). > > > > Sorry I'm not sure

Re: register long sp asm("r1") incorrect

2010-02-14 Thread Pavel Machek
> On Tue, 2010-02-09 at 16:24 +0100, Pavel Machek wrote: > > ...according to gcc docs, sp should be global, or placement in > > register is not guaranteed (except at asm boundaries, but there are > > none). > > Sorry I'm not sure I grok what you mean. Well, according to gcc doscs and my experienc

Re: register long sp asm("r1") incorrect

2010-02-10 Thread Benjamin Herrenschmidt
On Tue, 2010-02-09 at 16:24 +0100, Pavel Machek wrote: > ...according to gcc docs, sp should be global, or placement in > register is not guaranteed (except at asm boundaries, but there are > none). Sorry I'm not sure I grok what you mean. Cheers, Ben. __

register long sp asm("r1") incorrect

2010-02-09 Thread Pavel Machek
...according to gcc docs, sp should be global, or placement in register is not guaranteed (except at asm boundaries, but there are none). Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://at