60#include <TargConfig.h>
96#define SeCtx_setStackTop(o, stackMark) \
97 (*(stackMark)=1,(o)->stackTop=stackMark,setjmp((o)->startContext))
114#define SeCtx_destructor(o)
void SeCtx_save(SeCtx *o)
void SeCtx_panic(SeCtx *o, U32 size)
Function you must implement.
#define SeCtx_destructor(o)
Definition: SeCtx.h:114
void SeCtx_constructor(SeCtx *o, SeCtxTask t, void *buf, int bufLen)
Create a Context Manager instance.
void(* SeCtxTask)(struct SeCtx *ctx)
The task/thread entry point.
Definition: SeCtx.h:65
void SeCtx_restore(SeCtx *o)
struct SeCtx SeCtx
SeCtx structure: See Context Manager and Bare Metal Systems for details.
SeCtx structure: See Context Manager and Bare Metal Systems for details.
Definition: SeCtx.h:71
jmp_buf startContext
Definition: SeCtx.h:76
SeCtxTask task
Definition: SeCtx.h:80
U32 magic1
Definition: SeCtx.h:74
void * stackBuf
Definition: SeCtx.h:82
U32 timeout
Definition: SeCtx.h:86
U8 * currentStack
Definition: SeCtx.h:84
U32 magic2
Definition: SeCtx.h:78
U8 ready
Definition: SeCtx.h:90
U16 stackBufLen
Definition: SeCtx.h:88
U8 hasContext
Definition: SeCtx.h:89
U32 startTime
Definition: SeCtx.h:87
U8 * stackTop
Definition: SeCtx.h:81
jmp_buf savedContext
Definition: SeCtx.h:72