Changeset 7c0bd74 in rtems for cpukit/score

Timestamp:
04/22/14 08:15:39 (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
8365ad1
Parents:
3fe1e43
git-author:
Sebastian Huber <sebastian.huber@…> (04/22/14 08:15:39)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/28/14 07:26:19)
Message:

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.

(No files)

Note: See TracChangeset for help on using the changeset viewer.