forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user