linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* question about 'r2' !!!
@ 2000-09-06  2:24 Rolf Liu
  2000-09-06 11:00 ` Geert Uytterhoeven
  2000-09-07  0:53 ` Paul Mackerras
  0 siblings, 2 replies; 8+ messages in thread
From: Rolf Liu @ 2000-09-06  2:24 UTC (permalink / raw)
  To: linuxppc-dev


Hi, all,
As everyone konws, Linux use register 'r2' as a reference of 'current',which
is realized by
GCC. Also, the exeception handling of Linux do some work about 'r2'.

I am currently engaged in compiling Linux-ppc source tree using a CC other
than GCC.
The CC can only produce the executable format of 'EABI', a convention made
by Motorola.
And 'EABI' use 'r2' as a base address register for reference of const data,
which can't
be changed. So I want to use a general global varialbe as 'current', leaving
'r2' to 'EABI'.

Anyone has some experence in such issue?
what consideration I must take?
I am pleased to get any comments from you .
Thanks a lot

Rolf


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2000-09-07 11:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-06  2:24 question about 'r2' !!! Rolf Liu
2000-09-06 11:00 ` Geert Uytterhoeven
2000-09-06 16:46   ` Michael Schmitz
2000-09-06 20:23     ` Frank Rowand
2000-09-06 20:41       ` Michael Schmitz
2000-09-06 21:07         ` Dan Malek
2000-09-07 11:16           ` Michael Schmitz
2000-09-07  0:53 ` Paul Mackerras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).