summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2005-02-22 19:33:17 +0000
committerroot <root>2005-02-22 19:33:17 +0000
commit5c848f9d81006c1f5b93a7c7ef9290c0e00a7d87 (patch)
treec43f9283d0ba14df0898c822a584f6631455e68a
parent6bdb73d9236d564cc4e5b613cc688bfb5b68846f (diff)
*** empty log message ***rel-1_1
-rw-r--r--coro.c3
1 files changed, 3 insertions, 0 deletions
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