Changeset 0f250f9 in mainline for generic/src/proc/task.c


Ignore:
Timestamp:
2006-03-17T18:07:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
69f293e
Parents:
6c6a19e6
Message:

Improved uspace threads.
ia64 needs fixing.

File:
1 edited

Legend:

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

    r6c6a19e6 r0f250f9  
    3030#include <proc/thread.h>
    3131#include <proc/task.h>
     32#include <proc/uarg.h>
    3233#include <mm/as.h>
    3334#include <mm/slab.h>
    34 
    3535#include <synch/spinlock.h>
    3636#include <arch.h>
     
    4040#include <memstr.h>
    4141#include <print.h>
    42 
    4342#include <elf.h>
    4443
     
    116115        thread_t *t;
    117116        task_t *task;
    118         uspace_arg_t *uarg;
     117        uspace_arg_t *kernel_uarg;
    119118
    120119        as = as_create(0);
     
    126125        }
    127126       
    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;
     127        kernel_uarg = (uspace_arg_t *) malloc(sizeof(uspace_arg_t), 0);
     128        kernel_uarg->uspace_entry = (void *) ((elf_header_t *) program_addr)->e_entry;
     129        kernel_uarg->uspace_stack = (void *) USTACK_ADDRESS;
     130        kernel_uarg->uspace_thread_function = NULL;
     131        kernel_uarg->uspace_thread_arg = NULL;
     132        kernel_uarg->uspace_uarg = NULL;
    131133       
    132134        task = task_create(as, name);
    133         t = thread_create(uinit, uarg, task, 0, "uinit");
     135        t = thread_create(uinit, kernel_uarg, task, 0, "uinit");
    134136       
    135137        /*
Note: See TracChangeset for help on using the changeset viewer.