Subversion Repositories HelenOS

Rev

Rev 2865 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2865 Rev 3431
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>
-
 
49
#include <arch.h>
48
#include <arch.h>
-
 
49
#include <udebug/udebug.h>
-
 
50
 
50
 
51
 
51
/** Thread used to bring up userspace thread.
52
/** Thread used to bring up userspace thread.
52
 *
53
 *
53
 * @param arg Pointer to structure containing userspace entry and stack
54
 * @param arg Pointer to structure containing userspace entry and stack
54
 *     addresses.
55
 *     addresses.
Line 65... Line 66...
65
     * didn't detach themselves and nobody else joined them will have to be
66
     * didn't detach themselves and nobody else joined them will have to be
66
     * deployed for the event of forceful task termination.
67
     * deployed for the event of forceful task termination.
67
     */
68
     */
68
    thread_detach(THREAD);
69
    thread_detach(THREAD);
69
 
70
 
-
 
71
#ifdef CONFIG_UDEBUG
70
    udebug_stoppable_end();
72
    udebug_stoppable_end();
-
 
73
#endif
71
   
74
   
72
    uarg.uspace_entry = ((uspace_arg_t *) arg)->uspace_entry;
75
    uarg.uspace_entry = ((uspace_arg_t *) arg)->uspace_entry;
73
    uarg.uspace_stack = ((uspace_arg_t *) arg)->uspace_stack;
76
    uarg.uspace_stack = ((uspace_arg_t *) arg)->uspace_stack;
74
    uarg.uspace_uarg = ((uspace_arg_t *) arg)->uspace_uarg;
77
    uarg.uspace_uarg = ((uspace_arg_t *) arg)->uspace_uarg;
75
    uarg.uspace_thread_function = NULL;
78
    uarg.uspace_thread_function = NULL;