26 #ifndef CONT_STACKSIZE
27 #define CONT_STACKSIZE 4096
42 unsigned stack[CONT_STACKSIZE / 4];
53 void cont_run(
cont_t*,
void (*pfn)(
void));
61 int cont_check(
cont_t* cont);
65 int cont_get_free_stack(
cont_t* cont);
69 bool cont_can_yield(
cont_t* cont);
void(* pc_ret)(void)
Definition: cont.h:31
unsigned stack_guard2
Definition: cont.h:44
unsigned * sp_ret
Definition: cont.h:32
void(* pc_yield)(void)
Definition: cont.h:34
unsigned stack[4096/4]
Definition: cont.h:42
unsigned * sp_yield
Definition: cont.h:35
unsigned unused2
Definition: cont.h:39
unsigned stack_guard1
Definition: cont.h:40
unsigned * stack_end
Definition: cont.h:37
unsigned unused1
Definition: cont.h:38
unsigned * struct_start
Definition: cont.h:45