Changeset 0f250f9 in mainline for generic/src/proc/task.c
- Timestamp:
- 2006-03-17T18:07:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 69f293e
- Parents:
- 6c6a19e6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/proc/task.c
r6c6a19e6 r0f250f9 30 30 #include <proc/thread.h> 31 31 #include <proc/task.h> 32 #include <proc/uarg.h> 32 33 #include <mm/as.h> 33 34 #include <mm/slab.h> 34 35 35 #include <synch/spinlock.h> 36 36 #include <arch.h> … … 40 40 #include <memstr.h> 41 41 #include <print.h> 42 43 42 #include <elf.h> 44 43 … … 116 115 thread_t *t; 117 116 task_t *task; 118 uspace_arg_t * uarg;117 uspace_arg_t *kernel_uarg; 119 118 120 119 as = as_create(0); … … 126 125 } 127 126 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; 131 133 132 134 task = task_create(as, name); 133 t = thread_create(uinit, uarg, task, 0, "uinit");135 t = thread_create(uinit, kernel_uarg, task, 0, "uinit"); 134 136 135 137 /*
Note:
See TracChangeset
for help on using the changeset viewer.