Changeset 32b4a0c in rtems for cpukit/score/cpu/arm/cpu_asm.S


Ignore:
Timestamp:
06/09/17 05:25:02 (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
f7d0f5e
Parents:
a66accc5
git-author:
Sebastian Huber <sebastian.huber@…> (06/09/17 05:25:02)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/09/17 05:30:41)
Message:

Simplify TLS support in context switch

There is no need to save the thread pointer in _CPU_Context_switch()
since it is a thread invariant. It is initialized once in
_CPU_Context_Initialize().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/arm/cpu_asm.S

    ra66accc5 r32b4a0c  
    5757/* Start saving context */
    5858        GET_SELF_CPU_CONTROL    r2
     59        ldr     r3, [r2, #PER_CPU_ISR_DISPATCH_DISABLE]
    5960        stm     r0, {r4, r5, r6, r7, r8, r9, r10, r11, r13, r14}
    60 
    61 #ifdef ARM_MULTILIB_HAS_THREAD_ID_REGISTER
    62         mrc     p15, 0, r3, c13, c0, 3
    63 #endif
    64 
    65         ldr     r4, [r2, #PER_CPU_ISR_DISPATCH_DISABLE]
    6661
    6762#ifdef ARM_MULTILIB_VFP
     
    7065#endif
    7166
    72 #ifdef ARM_MULTILIB_HAS_THREAD_ID_REGISTER
    73         str     r3, [r0, #ARM_CONTEXT_CONTROL_THREAD_ID_OFFSET]
    74 #endif
    75 
    76         str     r4, [r0, #ARM_CONTEXT_CONTROL_ISR_DISPATCH_DISABLE]
     67        str     r3, [r0, #ARM_CONTEXT_CONTROL_ISR_DISPATCH_DISABLE]
    7768
    7869#ifdef RTEMS_SMP
Note: See TracChangeset for help on using the changeset viewer.