|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r81632 - trunk/libs/context/src/asm
From: oliver.kowalke_at_[hidden]
Date: 2012-11-30 08:04:52
Author: olli
Date: 2012-11-30 08:04:51 EST (Fri, 30 Nov 2012)
New Revision: 81632
URL: http://svn.boost.org/trac/boost/changeset/81632
Log:
context: fix for 64bit MacOSX
Text files modified:
trunk/libs/context/src/asm/make_x86_64_sysv_macho_gas.S | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
Modified: trunk/libs/context/src/asm/make_x86_64_sysv_macho_gas.S
==============================================================================
--- trunk/libs/context/src/asm/make_x86_64_sysv_macho_gas.S (original)
+++ trunk/libs/context/src/asm/make_x86_64_sysv_macho_gas.S 2012-11-30 08:04:51 EST (Fri, 30 Nov 2012)
@@ -42,11 +42,12 @@
.globl _make_fcontext
.align 8
_make_fcontext:
- leaq -0x58(%rdi), %r8 /* reserve space for fcontext_t at top of context stack */
+ leaq -0x58(%rdi), %rax /* reserve space for fcontext_t at top of context stack */
/* shift address in RAX to lower 16 byte boundary */
/* == pointer to fcontext_t and address of context stack */
- andq $-16, %rax
+ moveabs $-16, %r8
+ andq %r8, %rax
movq %rdi, 0x40(%rax) /* save address of stack pointer (base) in fcontext_t */
movq %rsi, 0x48(%rax) /* save stack size in fcontext_t */
@@ -68,4 +69,4 @@
/* RSP points to same address as RSP on entry of context function + 0x8 */
xorq %rdi, %rdi /* exit code is zero */
call __exit /* exit application */
- hlt
+
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