Changes in uspace/lib/c/generic/context.c [b4f1171:0b05082] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/context.c
rb4f1171 r0b05082 43 43 void context_swap(context_t *self, context_t *other) 44 44 { 45 if (!__ context_save(self))46 __ context_restore(other, 1);45 if (!__setjmp(self)) 46 __longjmp(other, 1); 47 47 } 48 48 49 49 void context_create(context_t *context, const context_create_t *arg) 50 50 { 51 __ context_save(context);51 __setjmp(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.