Sorry I'm not sure I grok what you mean.
Cheers,
Ben.
Well, according to gcc doscs and my experience, local "register int
__asm()" variables only work by accident (or not at all).
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Hrm... we definitely rely on that for our thread_info() access, and so
far it has worked well for us, but I'll poke our gcc folks just in case.
Cheers,
Ben.
Thanks, and let me know about any results.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
All the gcc folks I talked to say something along the lines that there
is no way in hell it doesn't work :-)
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.
I'm CCing a couple of experts just to be sure.
Cheers,
Ben.
It should work, because r1, being the stack pointer, is already marked a
reserved register in gcc.
The reference Pavel is citing bascially states that gcc won't globally
reserve the register, which is true, but it is already reserved anyway.
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.
Ok, thanks for clarification.
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html