SPARC Context Switch Code
Daniel Hellstrom
daniel at gaisler.com
Fri Feb 7 13:45:51 UTC 2014
On 02/07/2014 02:29 PM, Sebastian Huber wrote:
> 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:
>
> http://git.rtems.org/rtems/tree/cpukit/score/cpu/sparc/cpu.c#n294
>
> I don't know if other system reserved registers are used by GCC or linker trampolines.
>
Ok this is new for me. That seems reasonable.
Daniel
More information about the users
mailing list