--- libcoro/coro.h 2008/04/24 12:56:23 1.26 +++ libcoro/coro.h 2008/11/07 16:39:35 1.31 @@ -55,6 +55,10 @@ * 2008-03-02 Switched to 2-clause BSD license with GPL exception. * 2008-04-04 New (but highly unrecommended) pthreads backend. * 2008-04-24 Reinstate CORO_LOSER (had wrong stack adjustments). + * 2008-10-30 Support assembly method on x86 with and without frame pointer. + * 2008-11-03 Use a global asm statement for CORO_ASM, idea by pippijn. + * 2008-11-05 Hopefully fix misaligned stacks with CORO_ASM/SETJMP. + * 2008-11-07 rbp wasn't saved in CORO_ASM on x86_64. */ #ifndef CORO_H @@ -207,11 +211,11 @@ #elif CORO_ASM struct coro_context { - volatile void **sp; + volatile void **sp; /* must be at offset 0 */ }; -void __attribute__ ((__noinline__, __fastcall__)) - coro_transfer (coro_context *prev, coro_context *next); +void __attribute__ ((__noinline__, __regparm__(2))) +coro_transfer (coro_context *prev, coro_context *next); #elif CORO_PTHREAD