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
  • c/src/lib/libbsp/sparc/shared/irq_asm.S

    ra66accc5 r32b4a0c  
    6060SYM(_CPU_Context_switch):
    6161        st      %g5, [%o0 + G5_OFFSET]       ! save the global registers
    62         st      %g7, [%o0 + G7_OFFSET]
     62
     63        /*
     64         * No need to save the thread pointer %g7 since it is a thread
     65         * invariant.  It is initialized once in _CPU_Context_Initialize().
     66         */
    6367
    6468        std     %l0, [%o0 + L0_OFFSET]       ! save the local registers
Note: See TracChangeset for help on using the changeset viewer.