Changeset 6ce3f7b in rtems


Ignore:
Timestamp:
Jul 16, 2008, 10:04:06 PM (11 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.10, 4.11, 4.9, master
Children:
0354299
Parents:
d60239f
Message:

2008-07-16 Till Straumann <strauman@…>

  • new-exceptions/cpu.c: propagate R2 to all task contexts even if the ABI is SVR4. Cannot hurt...
Location:
c/src/lib/libcpu/powerpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/ChangeLog

    rd60239f r6ce3f7b  
     12008-07-16      Till Straumann <strauman@slac.stanford.edu>
     2
     3        * new-exceptions/cpu.c: propagate R2 to all task contexts
     4        even if the ABI is SVR4. Cannot hurt...
     5
    162008-07-16      Till Straumann <strauman@slac.stanford.edu>
    27
  • c/src/lib/libcpu/powerpc/new-exceptions/cpu.c

    rd60239f r6ce3f7b  
    127127
    128128#if (PPC_ABI == PPC_ABI_SVR4)
    129   { unsigned    r13 = 0;
    130     asm volatile ("mr %0, 13" : "=r" ((r13)));
     129  /*
     130   * SVR4 says R2 is for 'system-reserved' use; it cannot hurt to
     131   * propagate R2 to all task contexts.
     132   */
     133  { uint32_t    r2 = 0;
     134    unsigned    r13 = 0;
     135    asm volatile ("mr %0,2; mr %1,13" : "=r" ((r2)), "=r" ((r13)));
    131136
     137    the_context->gpr2 = r2;
    132138    the_context->gpr13 = r13;
    133139  }
Note: See TracChangeset for help on using the changeset viewer.