Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77641 - trunk/libs/context/src/asm
From: oliver.kowalke_at_[hidden]
Date: 2012-03-30 03:16:07


Author: olli
Date: 2012-03-30 03:16:02 EDT (Fri, 30 Mar 2012)
New Revision: 77641
URL: http://svn.boost.org/trac/boost/changeset/77641

Log:
context: set correct size on stack for parameter are

Text files modified:
   trunk/libs/context/src/asm/fcontext_ppc32_sysv_elf_gas.S | 4 ++--
   trunk/libs/context/src/asm/fcontext_ppc64_sysv_elf_gas.S | 4 ++--
   2 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/libs/context/src/asm/fcontext_ppc32_sysv_elf_gas.S
==============================================================================
--- trunk/libs/context/src/asm/fcontext_ppc32_sysv_elf_gas.S (original)
+++ trunk/libs/context/src/asm/fcontext_ppc32_sysv_elf_gas.S 2012-03-30 03:16:02 EDT (Fri, 30 Mar 2012)
@@ -313,8 +313,8 @@
     lwz %r3, 24(%r1) # pop pointer to fcontext_t from stack
     addi %r1, %r1, 28 # release space on stack
 
- li %r4, 16
- subf %r0, %r4, %r0 # reserve 16 bytes on top of the stack
+ li %r4, 32
+ subf %r0, %r4, %r0 # 32 bytes on stack for parameter area(== 8 registers)
     stw %r0, 76(%r3) # save the stack base
     lwz %r0, 256(%r3) # load address of next user context
     stw %r0, 4(%r3) # save the next context

Modified: trunk/libs/context/src/asm/fcontext_ppc64_sysv_elf_gas.S
==============================================================================
--- trunk/libs/context/src/asm/fcontext_ppc64_sysv_elf_gas.S (original)
+++ trunk/libs/context/src/asm/fcontext_ppc64_sysv_elf_gas.S 2012-03-30 03:16:02 EDT (Fri, 30 Mar 2012)
@@ -348,8 +348,8 @@
     lwz %r3, 48(%r1) # pop pointer to fcontext_t from stack
     addi %r1, %r1, 56 # release space on stack
 
- li %r4, 32
- subf %r0, %r4, %r0 # reserve 32 bytes on top of the stack
+ li %r4, 64
+ subf %r0, %r4, %r0 # 64 bytes on stack for parameter area (== 8 registers)
     std %r0, 152(%r3) # save the stack base
     ld %r0, 360(%r3) # load address of next user context
     std %r0, 8(%r3) # save the next context


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk