60#include <TargConfig.h>
100#define SeCtx_setStackTop(o, stackMark) \
101 (*(stackMark)=1,(o)->stackTop=stackMark,setjmp((o)->startContext))
127#define SeCtx_destructor(o)
void SeCtx_panic(SeCtx *o, U32 size)
Function you must implement.
#define SeCtx_destructor(o)
No operation for a context using a caller-supplied static stack buffer.
Definition: SeCtx.h:127
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:69
struct SeCtx SeCtx
SeCtx structure: See Context Manager and Bare Metal Systems for details.
void SeCtx_save(SeCtx *o)
Suspend the active bare-metal socket context and save its stack.
void SeCtx_restore(SeCtx *o)
Restore a previously saved bare-metal socket context.
SeCtx structure: See Context Manager and Bare Metal Systems for details.
Definition: SeCtx.h:75
jmp_buf startContext
Definition: SeCtx.h:80
SeCtxTask task
Definition: SeCtx.h:84
U32 magic1
Definition: SeCtx.h:78
void * stackBuf
Definition: SeCtx.h:86
U32 timeout
Definition: SeCtx.h:90
U8 * currentStack
Definition: SeCtx.h:88
U32 magic2
Definition: SeCtx.h:82
U8 ready
Definition: SeCtx.h:94
U16 stackBufLen
Definition: SeCtx.h:92
U8 hasContext
Definition: SeCtx.h:93
U32 startTime
Definition: SeCtx.h:91
U8 * stackTop
Definition: SeCtx.h:85
jmp_buf savedContext
Definition: SeCtx.h:76