Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/main/uinit.c

    r3fcea34 r1871118  
    6060#endif
    6161
    62         uinit_arg_t *uarg = arg;
    63         sysarg_t pc = uarg->pc;
    64         sysarg_t sp = uarg->sp;
     62        uspace_arg_t *uarg = arg;
     63        uspace_arg_t local_uarg;
     64
     65        local_uarg.uspace_entry = uarg->uspace_entry;
     66        local_uarg.uspace_stack = uarg->uspace_stack;
     67        local_uarg.uspace_stack_size = uarg->uspace_stack_size;
     68        local_uarg.uspace_uarg = uarg->uspace_uarg;
     69        local_uarg.uspace_thread_function = USPACE_NULL;
     70        local_uarg.uspace_thread_arg = USPACE_NULL;
     71
    6572        free(uarg);
    6673
    67         userspace(pc, sp);
     74        userspace(&local_uarg);
    6875}
    6976
Note: See TracChangeset for help on using the changeset viewer.