Changeset ea7890e7 in mainline for kernel/generic/src/main/uinit.c
- Timestamp:
- 2007-06-01T15:47:46Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 07be3c4
- Parents:
- ff3a34b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/uinit.c
rff3a34b rea7890e7 46 46 #include <userspace.h> 47 47 #include <mm/slab.h> 48 #include <arch.h> 48 49 49 50 /** Thread used to bring up userspace thread. … … 55 56 { 56 57 uspace_arg_t uarg; 58 59 /* 60 * So far, we don't have a use for joining userspace threads so we 61 * immediately detach each uinit thread. If joining of userspace threads 62 * is required, some userspace API based on the kernel mechanism will 63 * have to be implemented. Moreover, garbage collecting of threads that 64 * didn't detach themselves and nobody else joined them will have to be 65 * deployed for the event of forceful task termination. 66 */ 67 thread_detach(THREAD); 57 68 58 69 uarg.uspace_entry = ((uspace_arg_t *) arg)->uspace_entry; 59 70 uarg.uspace_stack = ((uspace_arg_t *) arg)->uspace_stack; 60 71 uarg.uspace_uarg = ((uspace_arg_t *) arg)->uspace_uarg; 61 uarg.uspace_thread_function = NULL; 62 uarg.uspace_thread_arg = NULL; 72 uarg.uspace_thread_function = NULL; uarg.uspace_thread_arg = NULL; 63 73 64 74 free((uspace_arg_t *) arg);
Note:
See TracChangeset
for help on using the changeset viewer.