Changes in uspace/lib/c/generic/context.c [0b05082:b4f1171] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/context.c
r0b05082 rb4f1171 43 43 void context_swap(context_t *self, context_t *other) 44 44 { 45 if (!__ setjmp(self))46 __ longjmp(other, 1);45 if (!__context_save(self)) 46 __context_restore(other, 1); 47 47 } 48 48 49 49 void context_create(context_t *context, const context_create_t *arg) 50 50 { 51 __ setjmp(context);51 __context_save(context); 52 52 context_set(context, FADDR(arg->fn), arg->stack_base, 53 53 arg->stack_size, arg->tls);
Note:
See TracChangeset
for help on using the changeset viewer.