question about 'r2' !!!

Frank Rowand frank_rowand at mvista.com
Thu Sep 7 07:23:01 EST 2000


Michael Schmitz wrote:
>
> > > I am currently engaged in compiling Linux-ppc source tree using a CC other
> > > than GCC.
> >
> > May I ask you _why_ you want to do that?!?
>
> The mind fairly boggles. Anyway, once upon a time, current wasn't kept in
> a register but in memory. And if r2 won't do, just pick another register
> and tell the compiler not to touch it. Hope your compiler of choice has
> such a thing as --fixed-r2 ...
>
>         Michael
>

And if you want to use kgdb to debug your kernel, gdb knows that current is r2...

-Frank
--
Frank Rowand <frank_rowand at mvista.com>
MontaVista Software, Inc

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list