From 0cfd3b56792a5d7145f300ef14574f820fce3f06 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 27 Apr 2007 19:35:28 +0000 Subject: *** empty log message *** --- coro.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'coro.c') diff --git a/coro.c b/coro.c index d02c4db..c95de5e 100644 --- a/coro.c +++ b/coro.c @@ -81,13 +81,7 @@ coro_init (void) coro_transfer ((coro_context *)new_coro, (coro_context *)create_coro); -#if HAVE_CFI - asm (".cfi_startproc"); -#endif func ((void *)arg); -#if HAVE_CFI - asm (".cfi_endproc"); -#endif /* the new coro returned. bad. just abort() for now */ abort (); @@ -102,7 +96,15 @@ static void trampoline (int sig) { if (setjmp (((coro_context *)new_coro)->env)) - coro_init (); /* start it */ + { +#if HAVE_CFI + asm (".cfi_startproc"); +#endif + coro_init (); /* start it */ +#if HAVE_CFI + asm (".cfi_endproc"); +#endif + } else trampoline_count++; } -- cgit v1.2.3