SPARC Context Switch Code

Sebastian Huber sebastian.huber at
Fri Feb 7 13:29:01 UTC 2014

On 2014-02-07 14:20, Daniel Hellstrom wrote:
> Hello,
> That sounds correct to me and I'm glad some one brings this up, haven't tested
> it though. And while we're at it, I would like to discuss the usage of G5-G7. I
> have had that on my TODO for quite some time to investigate... As they are
> system specific and RTEMS does not use them I see no point in saving them, do
> you? RTEMS never seems to use G6,G7 so would could instruct GCC to use them and
> break the ABI for speed ;)

The G7 is used for thread-local storage:

I don't know if other system reserved registers are used by GCC or linker 

Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

More information about the users mailing list