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

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