ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libcoro/coro.h
(Generate patch)

Comparing libcoro/coro.h (file contents):
Revision 1.26 by root, Thu Apr 24 12:56:23 2008 UTC vs.
Revision 1.31 by root, Fri Nov 7 16:39:35 2008 UTC

53 * on SIGUSR2 and sigaltstack in Crossfire). 53 * on SIGUSR2 and sigaltstack in Crossfire).
54 * 2008-01-21 Disable CFI usage on anything but GNU/Linux. 54 * 2008-01-21 Disable CFI usage on anything but GNU/Linux.
55 * 2008-03-02 Switched to 2-clause BSD license with GPL exception. 55 * 2008-03-02 Switched to 2-clause BSD license with GPL exception.
56 * 2008-04-04 New (but highly unrecommended) pthreads backend. 56 * 2008-04-04 New (but highly unrecommended) pthreads backend.
57 * 2008-04-24 Reinstate CORO_LOSER (had wrong stack adjustments). 57 * 2008-04-24 Reinstate CORO_LOSER (had wrong stack adjustments).
58 * 2008-10-30 Support assembly method on x86 with and without frame pointer.
59 * 2008-11-03 Use a global asm statement for CORO_ASM, idea by pippijn.
60 * 2008-11-05 Hopefully fix misaligned stacks with CORO_ASM/SETJMP.
61 * 2008-11-07 rbp wasn't saved in CORO_ASM on x86_64.
58 */ 62 */
59 63
60#ifndef CORO_H 64#ifndef CORO_H
61#define CORO_H 65#define CORO_H
62 66
205# endif 209# endif
206 210
207#elif CORO_ASM 211#elif CORO_ASM
208 212
209struct coro_context { 213struct coro_context {
210 volatile void **sp; 214 volatile void **sp; /* must be at offset 0 */
211}; 215};
212 216
213void __attribute__ ((__noinline__, __fastcall__)) 217void __attribute__ ((__noinline__, __regparm__(2)))
214 coro_transfer (coro_context *prev, coro_context *next); 218coro_transfer (coro_context *prev, coro_context *next);
215 219
216#elif CORO_PTHREAD 220#elif CORO_PTHREAD
217 221
218#include <pthread.h> 222#include <pthread.h>
219 223

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines