ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libcoro/coro.c
(Generate patch)

Comparing libcoro/coro.c (file contents):
Revision 1.20 by root, Thu Oct 26 05:20:47 2006 UTC vs.
Revision 1.21 by root, Thu Oct 26 06:50:20 2006 UTC

176 sigprocmask (SIG_SETMASK, &osig, 0); 176 sigprocmask (SIG_SETMASK, &osig, 0);
177 177
178# elif CORO_LOSER 178# elif CORO_LOSER
179 179
180 setjmp (ctx->env); 180 setjmp (ctx->env);
181#if __CYGWIN__
181 ctx->env[7] = (long)((char *)sptr + ssize); 182 ctx->env[7] = (long)((char *)sptr + ssize);
182 ctx->env[8] = (long)coro_init; 183 ctx->env[8] = (long)coro_init;
184#elif defined(_M_IX86)
185 ((_JUMP_BUFFER *)&ctx->env)->Eip = (long)coro_init;
186 ((_JUMP_BUFFER *)&ctx->env)->Esp = (long)STACK_ADJUST_PTR (sptr,ssize);
187#elif defined(_M_AMD64)
188 ((_JUMP_BUFFER *)&ctx->env)->Rip = (__int64)coro_init;
189 ((_JUMP_BUFFER *)&ctx->env)->Rsp = (__int64)STACK_ADJUST_PTR (sptr,ssize);
190#elif defined(_M_IA64)
191 ((_JUMP_BUFFER *)&ctx->env)->StIIP = (__int64)coro_init;
192 ((_JUMP_BUFFER *)&ctx->env)->IntSp = (__int64)STACK_ADJUST_PTR (sptr,ssize);
193#else
194#error "microsoft libc or architecture not supported"
195#endif
183 196
184# elif CORO_LINUX 197# elif CORO_LINUX
185 198
186 setjmp (ctx->env); 199 setjmp (ctx->env);
187#if defined(__GLIBC__) && defined(__GLIBC_MINOR__) \ 200#if defined(__GLIBC__) && defined(__GLIBC_MINOR__) \

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines