diff options
author | root <root> | 2005-02-22 19:33:17 +0000 |
---|---|---|
committer | root <root> | 2005-02-22 19:33:17 +0000 |
commit | 5c848f9d81006c1f5b93a7c7ef9290c0e00a7d87 (patch) | |
tree | c43f9283d0ba14df0898c822a584f6631455e68a | |
parent | 6bdb73d9236d564cc4e5b613cc688bfb5b68846f (diff) |
*** empty log message ***rel-1_1
-rw-r--r-- | coro.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |