diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-22 10:15:39 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-28 09:26:19 +0200 |
commit | 7c0bd74c87b141454ae17ee1cfeeba42dc4b0df2 (patch) | |
tree | cda34ba07b75edb4e4bf9e39424adfd785cfcc3f /config.sub | |
parent | sparc: Document register g7 usage (diff) | |
download | rtems-7c0bd74c87b141454ae17ee1cfeeba42dc4b0df2.tar.bz2 |
sparc: Add _CPU_Get_current_per_CPU_control()
Use register g6 for the per-CPU control of the current processor. The
register g6 is reserved for the operating system by the SPARC ABI. On
Linux register g6 is used for a similar purpose with the same method
since 1996.
The register g6 must be initialized during system startup and then must
remain unchanged.
Since the per-CPU control is used in all critical sections of the
operating system, this is a performance optimization for the operating
system core procedures. An additional benefit is that the low-level
context switch and interrupt processing code is now identical on non-SMP
and SMP configurations.
Diffstat (limited to 'config.sub')
0 files changed, 0 insertions, 0 deletions