3 * @brief ucontext header, since Mac OSX swapcontext() is broken
11 static inline int model_swapcontext(ucontext_t *oucp, ucontext_t *ucp)
15 * Mac OSX swapcontext() clobbers some registers, so use a hand-rolled
16 * version with {get,set}context(). We can avoid the same problem
17 * (where optimizations can break the following code) because we don't
18 * statically link with the C library
21 /* volatile, so that 'i' doesn't get promoted to a register */
33 return swapcontext(oucp, ucp);
37 #endif /* __CONTEXT_H__ */