Module: xenomai-2.4
Branch: master
Commit: 4e45d7377fdc63ed02ad8c2517d979d256f11a72
URL:    
http://git.xenomai.org/?p=xenomai-2.4.git;a=commit;h=4e45d7377fdc63ed02ad8c2517d979d256f11a72

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon May 11 16:01:31 2009 +0200

Do not restore Altivec and SPE regs for kernel threads

---

 ksrc/arch/powerpc/switch_32.S |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ksrc/arch/powerpc/switch_32.S b/ksrc/arch/powerpc/switch_32.S
index b7a200a..64d7a7a 100644
--- a/ksrc/arch/powerpc/switch_32.S
+++ b/ksrc/arch/powerpc/switch_32.S
@@ -91,8 +91,6 @@ END_FTR_SECTION_IFSET(CPU_FTR_SPE)
        mtspr   SPRN_SPRG3,r0   /* Update current THREAD phys addr */
        addi    r2,r4,-THREAD   /* Update current */
 
-same_current:
-               
 #ifdef CONFIG_ALTIVEC
 BEGIN_FTR_SECTION
        lwz     r0,THREAD_VRSAVE(r4)
@@ -110,6 +108,8 @@ END_FTR_SECTION_IFSET(CPU_FTR_SPE)
 #endif
 #endif /* CONFIG_SPE */
 
+same_current:
+               
        lwz     r0,_CCR(r1)
        mtcrf   0xFF,r0
        REST_NVGPRS(r1)


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to