Changeset d5a89a3 in mainline for uspace/lib/c/generic/context.c
- Timestamp:
- 2019-02-11T22:31:04Z (6 years ago)
- Children:
- aaf9789c
- Parents:
- e3272101 (diff), 4805495 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/context.c
re3272101 rd5a89a3 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.