Changeset c6f76392 in rtems


Ignore:
Timestamp:
03/07/17 06:50:12 (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
a11e1ff5
Parents:
696b5b1e
Message:

powerpc: Fix AltiVec? context switch

Update #2751.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/mpc6xx/altivec/vec_sup_asm.S

    r696b5b1e rc6f76392  
    7777        .set   r6,   6
    7878        .set   r7,   7
    79 
     79        .set   r9,   9
    8080        .set   r10, 10
    8181        .set   r11, 11
    82         .set   r12, 12
     82        /* Do not use r12, since this is used by _CPU_Context_switch() */
    8383
    8484        .set   cr5,  5
     
    576576         * when testing if we really should do the load/store operation.
    577577         */
    578         mfcr      r12
     578        mfcr      r9
    579579#endif
    580580
     
    591591#ifndef IGNORE_VRSAVE
    592592        /* Restore CRC */
    593         mtcr      r12
     593        mtcr      r9
    594594#endif
    595595        blr
     
    604604         * when testing if we really should do the load/store operation.
    605605         */
    606         mfcr      r12
     606        mfcr      r9
    607607#endif
    608608
     
    620620
    621621#ifndef IGNORE_VRSAVE
    622         mtcr      r12
     622        mtcr      r9
    623623#endif
    624624        blr
     
    650650         * when testing if we really should do the load/store operation.
    651651         */
    652         mfcr      r12
     652        mfcr      r9
    653653#endif
    654654
     
    686686
    687687#ifndef IGNORE_VRSAVE
    688         mtcr      r12
     688        mtcr      r9
    689689#endif
    690690        blr
     
    762762         * when testing if we really should do the load/store operation.
    763763         */
    764         mfcr      r12
     764        mfcr      r9
    765765#endif
    766766
     
    778778
    779779#ifndef IGNORE_VRSAVE
    780         mtcr      r12
     780        mtcr      r9
    781781#endif
    782782        blr
     
    792792         * when testing if we really should do the load/store operation.
    793793         */
    794         mfcr      r12
     794        mfcr      r9
    795795#endif
    796796
     
    807807#ifndef IGNORE_VRSAVE
    808808        /* Restore CRC */
    809         mtcr      r12
     809        mtcr      r9
    810810#endif
    811811        blr
Note: See TracChangeset for help on using the changeset viewer.