Rev 2787 | Rev 3431 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2787 | Rev 2865 | ||
---|---|---|---|
Line 43... | Line 43... | ||
43 | #include <main/uinit.h> |
43 | #include <main/uinit.h> |
44 | #include <arch/types.h> |
44 | #include <arch/types.h> |
45 | #include <proc/thread.h> |
45 | #include <proc/thread.h> |
46 | #include <userspace.h> |
46 | #include <userspace.h> |
47 | #include <mm/slab.h> |
47 | #include <mm/slab.h> |
- | 48 | #include <udebug/udebug.h> |
|
48 | #include <arch.h> |
49 | #include <arch.h> |
49 | 50 | ||
50 | /** Thread used to bring up userspace thread. |
51 | /** Thread used to bring up userspace thread. |
51 | * |
52 | * |
52 | * @param arg Pointer to structure containing userspace entry and stack |
53 | * @param arg Pointer to structure containing userspace entry and stack |
Line 63... | Line 64... | ||
63 | * have to be implemented. Moreover, garbage collecting of threads that |
64 | * 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 | * didn't detach themselves and nobody else joined them will have to be |
65 | * deployed for the event of forceful task termination. |
66 | * deployed for the event of forceful task termination. |
66 | */ |
67 | */ |
67 | thread_detach(THREAD); |
68 | thread_detach(THREAD); |
- | 69 | ||
- | 70 | udebug_stoppable_end(); |
|
68 | 71 | ||
69 | uarg.uspace_entry = ((uspace_arg_t *) arg)->uspace_entry; |
72 | uarg.uspace_entry = ((uspace_arg_t *) arg)->uspace_entry; |
70 | uarg.uspace_stack = ((uspace_arg_t *) arg)->uspace_stack; |
73 | uarg.uspace_stack = ((uspace_arg_t *) arg)->uspace_stack; |
71 | uarg.uspace_uarg = ((uspace_arg_t *) arg)->uspace_uarg; |
74 | uarg.uspace_uarg = ((uspace_arg_t *) arg)->uspace_uarg; |
72 | uarg.uspace_thread_function = NULL; |
75 | uarg.uspace_thread_function = NULL; |