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

Comparing libcoro/coro.c (file contents):
Revision 1.40 by root, Sat Nov 8 04:52:01 2008 UTC vs.
Revision 1.41 by root, Sat Nov 8 13:32:18 2008 UTC

285 ctx->env[JB_PC] = (__uint64_t)coro_init; 285 ctx->env[JB_PC] = (__uint64_t)coro_init;
286 ctx->env[JB_SP] = (__uint64_t)STACK_ADJUST_PTR (sptr, ssize) - sizeof (long); 286 ctx->env[JB_SP] = (__uint64_t)STACK_ADJUST_PTR (sptr, ssize) - sizeof (long);
287 287
288# elif CORO_ASM 288# elif CORO_ASM
289 289
290 ctx->sp = (volatile void **)(ssize + (char *)sptr); 290 ctx->sp = (void **)(ssize + (char *)sptr);
291 *--ctx->sp = (void *)abort; /* needed for alignment only */ 291 *--ctx->sp = (void *)abort; /* needed for alignment only */
292 *--ctx->sp = (void *)coro_init; 292 *--ctx->sp = (void *)coro_init;
293 ctx->sp -= NUM_SAVED; 293 ctx->sp -= NUM_SAVED;
294 294
295# elif CORO_UCONTEXT 295# elif CORO_UCONTEXT

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines