From 887d970fee8f754747b60c795cdb341e76a8a692 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 11 Dec 2011 17:50:12 -0800 Subject: [PATCH] rt: Make unwinding through __morestack work on mac Had to bump the min stack size in some of the tests from 256 bytes to 1024 bytes. Not sure why yet. --- src/rt/arch/x86_64/morestack.S | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rt/arch/x86_64/morestack.S b/src/rt/arch/x86_64/morestack.S index c85f2e142dba..80c77e8b1fcb 100644 --- a/src/rt/arch/x86_64/morestack.S +++ b/src/rt/arch/x86_64/morestack.S @@ -73,13 +73,11 @@ MORESTACK: // During unwinding we want to skip our caller since it's not // a complete frame and will make the unwinder sad -#if defined(__linux__) // Don't understand this line .cfi_offset 16, 0 // Tell the unwinding where to get the stack pointer for // our grandparent frame .cfi_offset %rsp, -24 -#endif // Save the grandparent stack pointer for the unwinder leaq 16(%rbp), %rax @@ -162,4 +160,4 @@ MORESTACK: #else MORESTACK: ret -#endif \ No newline at end of file +#endif