… | |
… | |
194 | #error "microsoft libc or architecture not supported" |
194 | #error "microsoft libc or architecture not supported" |
195 | #endif |
195 | #endif |
196 | |
196 | |
197 | # elif CORO_LINUX |
197 | # elif CORO_LINUX |
198 | |
198 | |
199 | setjmp (ctx->env); |
199 | _setjmp (ctx->env); |
200 | #if defined(__GLIBC__) && defined(__GLIBC_MINOR__) \ |
200 | #if defined(__GLIBC__) && defined(__GLIBC_MINOR__) \ |
201 | && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 0 && defined(JB_PC) && defined(JB_SP) |
201 | && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 0 && defined(JB_PC) && defined(JB_SP) |
202 | ctx->env[0].__jmpbuf[JB_PC] = (long)coro_init; |
202 | ctx->env[0].__jmpbuf[JB_PC] = (long)coro_init; |
203 | ctx->env[0].__jmpbuf[JB_SP] = (long)STACK_ADJUST_PTR (sptr,ssize); |
203 | ctx->env[0].__jmpbuf[JB_SP] = (long)STACK_ADJUST_PTR (sptr,ssize); |
204 | #elif defined(__GLIBC__) && defined(__GLIBC_MINOR__) \ |
204 | #elif defined(__GLIBC__) && defined(__GLIBC_MINOR__) \ |