From 5c848f9d81006c1f5b93a7c7ef9290c0e00a7d87 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 22 Feb 2005 19:33:17 +0000 Subject: *** empty log message *** --- coro.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coro.c b/coro.c index d3686d4..4eea82f 100644 --- a/coro.c +++ b/coro.c @@ -182,6 +182,9 @@ void coro_create(coro_context *ctx, #elif defined(__GNU_LIBRARY__) && defined(__i386__) ctx->env[0].__jmpbuf[0].__pc = (char *)coro_init; ctx->env[0].__jmpbuf[0].__sp = (void *)((char *)sptr + ssize); +#elif defined(__GNU_LIBRARY__) && defined(__amd64__) + ctx->env[0].__jmpbuf[JB_PC] = (long)coro_init; + ctx->env[0].__jmpbuf[JB_RSP] = (long)((char *)sptr + ssize); #else #error "linux libc or architecture not supported" #endif -- cgit v1.2.3