Changeset 9f52563 in mainline for generic/src/proc/task.c


Ignore:
Timestamp:
2006-03-17T01:34:36Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8a0b0669
Parents:
5fceec7
Message:

Support for user space threads.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/proc/task.c

    r5fceec7 r9f52563  
    116116        thread_t *t;
    117117        task_t *task;
     118        uspace_arg_t *uarg;
    118119
    119120        as = as_create(0);
     
    125126        }
    126127       
     128        uarg = (uspace_arg_t *) malloc(sizeof(uspace_arg_t), 0);
     129        uarg->uspace_entry = (__address) ((elf_header_t *) program_addr)->e_entry;
     130        uarg->uspace_stack = USTACK_ADDRESS;
     131       
    127132        task = task_create(as, name);
    128         t = thread_create(uinit, (void *)((elf_header_t *)program_addr)->e_entry,
    129                           task, 0, "uinit");
     133        t = thread_create(uinit, uarg, task, 0, "uinit");
    130134       
    131135        /*
Note: See TracChangeset for help on using the changeset viewer.