From d604f70f382aa28a8dce70364fc690d96f9ba7b1 Mon Sep 17 00:00:00 2001 From: pascalek Date: Wed, 7 Feb 2007 20:27:30 +0000 Subject: [PATCH] - initial revision Changed files: Coro-libc.patch -> 1.1 --- Coro-libc.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Coro-libc.patch diff --git a/Coro-libc.patch b/Coro-libc.patch new file mode 100644 index 0000000..4c74c29 --- /dev/null +++ b/Coro-libc.patch @@ -0,0 +1,20 @@ +diff -Nur Coro-3.41.orig/Coro/libcoro/coro.c Coro-3.41.chng/Coro/libcoro/coro.c +--- Coro-3.41.orig/Coro/libcoro/coro.c 2006-11-29 12:46:19.000000000 +0100 ++++ Coro-3.41.chng/Coro/libcoro/coro.c 2007-02-06 23:01:35.000000000 +0100 +@@ -215,8 +215,16 @@ + 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__) ++ ++#ifndef JB_PC ++#define JB_PC 7 ++#define JB_RSP 6 ++#define JB_RBP 1 ++#endif ++ + ctx->env[0].__jmpbuf[JB_PC] = (long)coro_init; + ctx->env[0].__jmpbuf[JB_RSP] = (long)STACK_ADJUST_PTR (sptr,ssize); ++ + #else + #error "linux libc or architecture not supported" + #endif -- 2.44.0