Changes in uspace/lib/c/generic/context.c [a35a3d8:e0a4686] in mainline
- File:
-
- 1 edited
-
uspace/lib/c/generic/context.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/context.c
ra35a3d8 re0a4686 28 28 29 29 #include <context.h> 30 #include <setjmp.h>31 30 #include <libarch/tls.h> 32 31 #include <libarch/fibril.h> … … 43 42 void context_swap(context_t *self, context_t *other) 44 43 { 45 if ( !__setjmp(self))46 __longjmp(other, 1);44 if (context_save(self)) 45 context_restore(other); 47 46 } 48 47 49 48 void context_create(context_t *context, const context_create_t *arg) 50 49 { 51 __setjmp(context);50 context_save(context); 52 51 context_set(context, FADDR(arg->fn), arg->stack_base, 53 52 arg->stack_size, arg->tls);
Note:
See TracChangeset
for help on using the changeset viewer.
