Files
rtems/c/src
Daniel Cederman 78cac9b092 sparc: Fix context switch on SMP
We must not load registers (e.g. PSR) from the heir context area before
the heir stopped execution.

With this patch the write to PSR is divided into two steps. We first update
the current window pointer and then we restore the status registers and
enable traps. This allows us to move the first write to PSR to be before
the write to WIM, as there is now no risk that we get an interrupt where
the CWP and WIM would be inconsistent. We only need to make sure that we
do not use any of the non-global registers or instructions that affects
CWP for three instructions after the write.

In the earlier code the non-global %o1 register was used right after the
write to PSR, which required the use of three nop:s.
2015-11-16 14:48:54 +01:00
..
2015-09-11 08:24:18 +02:00
2015-11-16 14:48:54 +01:00

This is the top level directory of the C RTEMS environment.  The
following is a description of the contents of each file and
subdirectory directly in this directory:

    tests

       This directory contains the RTEMS Test Suites. Currently
       this includes the following suites:

         + Single Processor Test Suite
         + Multiprocessor Test Suite
         + Timing Test Suite
         + Sample Application Suite

    lib

       This directory contains src for RTEMS libraries:
          libc, board support (including drivers) and libcpu.

    exec

       This directory contains the source code for the RTEMS executive.