From 4629f0317532027f90b394ef51f76df36050f39e Mon Sep 17 00:00:00 2001 From: root Date: Mon, 30 May 2011 02:21:54 +0000 Subject: *** empty log message *** --- coro.c | 1 + coro.h | 1 + 2 files changed, 2 insertions(+) diff --git a/coro.c b/coro.c index cd79d58..79e2ddc 100644 --- a/coro.c +++ b/coro.c @@ -307,6 +307,7 @@ coro_create (coro_context *ctx, coro_func coro, void *arg, void *sptr, long ssiz #endif ctx->sp -= NUM_SAVED; + memset (ctx->sp, 0, sizeof (*ctx->sp) * NUM_SAVED); # elif CORO_UCONTEXT diff --git a/coro.h b/coro.h index 19f0a8d..a4c8b0b 100644 --- a/coro.h +++ b/coro.h @@ -70,6 +70,7 @@ * 2008-11-19 define coro_*jmp symbols for easier porting. * 2009-06-23 tentative win32-backend support for mingw32 (Yasuhiro Matsumoto). * 2010-12-03 tentative support for uclibc (which lacks all sorts of things). + * 2011-05-30 set initial callee-saved-registers to zero with CORO_ASM. */ #ifndef CORO_H -- cgit v1.2.3