Changeset 057c294 in rtems


Ignore:
Timestamp:
12/03/13 08:55:52 (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
b4e8306
Parents:
f339afb
git-author:
Sebastian Huber <sebastian.huber@…> (12/03/13 08:55:52)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/03/13 11:58:47)
Message:

bsps/powerpc: Unconditionally clear reservations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S

    rf339afb r057c294  
    268268        mflr    r6
    269269        mfcr    r7
    270 #if defined(RTEMS_MULTIPROCESSING) || defined(RTEMS_SMP)
     270
    271271        /*
    272272         * We have to clear the reservation of the executing thread.  See also
    273          * Book E section 6.1.6.2 "Atomic Update Primitives".
     273         * Book E section 6.1.6.2 "Atomic Update Primitives".  Recent GCC
     274         * versions use atomic operations in the C++ library for example.
    274275         */
    275   #if PPC_CONTEXT_OFFSET_GPR1 != PPC_CONTEXT_CACHE_LINE_0 \
    276     || !BSP_DATA_CACHE_ENABLED \
    277     || PPC_CACHE_ALIGNMENT != 32
     276#if PPC_CONTEXT_OFFSET_GPR1 != PPC_CONTEXT_CACHE_LINE_0 \
     277  || !BSP_DATA_CACHE_ENABLED \
     278  || PPC_CACHE_ALIGNMENT != 32
    278279        li      r10, PPC_CONTEXT_OFFSET_GPR1
    279   #endif
     280#endif
    280281        stwcx.  r1, r3, r10
    281 #endif
     282
    282283        stw     r1, PPC_CONTEXT_OFFSET_GPR1(r3)
    283284        stw     r5, PPC_CONTEXT_OFFSET_MSR(r3)
Note: See TracChangeset for help on using the changeset viewer.