summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/new-exceptions
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-03-07 07:58:11 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-03-07 07:58:11 +0100
commita11e1ff57688a5cee5b0f807b970fe9eec05ac62 (patch)
tree3d8672b0e8b414ea9076de85abd46e28af203176 /c/src/lib/libcpu/powerpc/new-exceptions
parentpowerpc: Fix AltiVec context switch (diff)
downloadrtems-a11e1ff57688a5cee5b0f807b970fe9eec05ac62.tar.bz2
powerpc: Optimize AltiVec context switch
Use r8 instead of r5 to slightly optimize _CPU_Context_switch(). It is not a big deal, however, we already assume r12 is used by _CPU_Context_switch(). Treat r5 the in same way.
Diffstat (limited to 'c/src/lib/libcpu/powerpc/new-exceptions')
-rw-r--r--c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S2
1 files changed, 0 insertions, 2 deletions
diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S b/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S
index a1ec64b8e4..c0e11da076 100644
--- a/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S
+++ b/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S
@@ -435,11 +435,9 @@ PROC (_CPU_Context_switch):
restore_context:
#if defined(__ALTIVEC__) && !defined(PPC_MULTILIB_ALTIVEC)
- mr r14, r5
mr r4, r5
.extern _CPU_Context_switch_altivec
bl _CPU_Context_switch_altivec
- mr r5, r14
#endif
lwz r1, PPC_CONTEXT_OFFSET_GPR1(r5)