Changeset d5a89a3 in mainline for uspace/lib/c/generic/context.c


Ignore:
Timestamp:
2019-02-11T22:31:04Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
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.
Message:

merging with upstream/master

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/context.c

    re3272101 rd5a89a3  
    4343void context_swap(context_t *self, context_t *other)
    4444{
    45         if (!__setjmp(self))
    46                 __longjmp(other, 1);
     45        if (!__context_save(self))
     46                __context_restore(other, 1);
    4747}
    4848
    4949void context_create(context_t *context, const context_create_t *arg)
    5050{
    51         __setjmp(context);
     51        __context_save(context);
    5252        context_set(context, FADDR(arg->fn), arg->stack_base,
    5353            arg->stack_size, arg->tls);
Note: See TracChangeset for help on using the changeset viewer.