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.
This commit is contained in:
Brian Anderson 2011-12-11 17:50:12 -08:00 committed by Graydon Hoare
parent 3e32f6623c
commit 887d970fee

View file

@ -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
#endif