Ignore:
Timestamp:
Jul 19, 2016, 4:43:10 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11
Children:
7b24946
Parents:
c6c4fce9
git-author:
Sebastian Huber <sebastian.huber@…> (07/19/16 04:43:10)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/19/16 06:15:01)
Message:

bsps/powerpc: Fix AtliVec? context switch

Properly pass the stack aligned context to _CPU_Context_switch_altivec()
since _CPU_altivec_ctxt_off defined via ppc_context.

Update #2761.

File:
1 edited

Legend:

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

    rc6c4fce9 rdc0f537b  
    235235         */
    236236        _CPU_altivec_ctxt_off  = offsetof(ppc_context, altivec);
     237
     238        /*
     239         * See ppc_get_context() and PPC_CONTEXT_OFFSET_GPR1
     240         */
     241        _CPU_altivec_ctxt_off += PPC_DEFAULT_CACHE_LINE_SIZE;
     242
    237243        /*
    238244         * Add space possibly needed for alignment
Note: See TracChangeset for help on using the changeset viewer.