… | |
… | |
327 | |
327 | |
328 | ctx->sp = (volatile void **)(ssize + (char *)sptr); |
328 | ctx->sp = (volatile void **)(ssize + (char *)sptr); |
329 | /* we try to allow for both functions with and without frame pointers */ |
329 | /* we try to allow for both functions with and without frame pointers */ |
330 | *--ctx->sp = (void *)coro_init; |
330 | *--ctx->sp = (void *)coro_init; |
331 | { |
331 | { |
332 | void **frame = ctx->sp - 1; |
332 | void *frame = ctx->sp - 1; |
333 | int i; |
333 | int i; |
334 | for (i = NUM_SAVED; i--; ) |
334 | for (i = NUM_SAVED; i--; ) |
335 | *--ctx->sp = frame; |
335 | *--ctx->sp = frame; |
336 | } |
336 | } |
337 | |
337 | |