Changeset b4f1171 in mainline for uspace/lib/c/generic/context.c
- Timestamp:
- 2019-02-03T14:56:13Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8f99dbf
- Parents:
- a5c78a18
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-03 14:49:38)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-03 14:56:13)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/context.c
ra5c78a18 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.