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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sat Jul 18 17:33:28 2009 +0200

powerpc: reserve stack overhead in kthread trampoline

---

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

diff --git a/ksrc/arch/powerpc/switch_32.S b/ksrc/arch/powerpc/switch_32.S
index 64d7a7a..cbb1216 100644
--- a/ksrc/arch/powerpc/switch_32.S
+++ b/ksrc/arch/powerpc/switch_32.S
@@ -196,4 +196,5 @@ _GLOBAL(rthal_thread_trampoline)
        mtmsr   r14
        mtlr    r15
        mr      r3,r16
+       stwu    r1,-STACK_FRAME_OVERHEAD(r1)
        blr
diff --git a/ksrc/arch/powerpc/switch_64.S b/ksrc/arch/powerpc/switch_64.S
index 68bb9dc..88512f0 100644
--- a/ksrc/arch/powerpc/switch_64.S
+++ b/ksrc/arch/powerpc/switch_64.S
@@ -265,4 +265,5 @@ _GLOBAL(rthal_thread_trampoline)
        mtlr    r15
        mr      r2,r16
        mr      r3,r17
+       stdu    r1,-STACK_FRAME_OVERHEAD(r1)
        blr


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

Reply via email to