25 May
2013
25 May
'13
11:03 a.m.
2013/5/25 Michael Marcin
The function make_fcontext takes a stack pointer. However it is not clear at all from the documentation that the stack pointer should actually point to the end of the stack buffer.
hmm - itis architecture depended in which direction the stack grows. The current supported architectures use downward growing stacks. The documentation contains [1]: 'Note: Depending on the architecture *StackAllocator* returns an address from the top of the stack (grows downwards) or the bottom of the stack (grows upwards). '
[1] http://www.boost.org/doc/libs/1_53_0/libs/context/doc/html/context/stack.htm...