Ignore:
File:
1 edited

Legend:

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

    rb4f1171 r0b05082  
    4343void context_swap(context_t *self, context_t *other)
    4444{
    45         if (!__context_save(self))
    46                 __context_restore(other, 1);
     45        if (!__setjmp(self))
     46                __longjmp(other, 1);
    4747}
    4848
    4949void context_create(context_t *context, const context_create_t *arg)
    5050{
    51         __context_save(context);
     51        __setjmp(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.