Rev 3424 | Rev 3428 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3424 | Rev 3426 | ||
---|---|---|---|
Line 63... | Line 63... | ||
63 | atomic_dec(&THREAD->udebug.int_lock); |
63 | atomic_dec(&THREAD->udebug.int_lock); |
64 | } |
64 | } |
65 | 65 | ||
66 | void udebug_task_init(udebug_task_t *ut) |
66 | void udebug_task_init(udebug_task_t *ut) |
67 | { |
67 | { |
68 | mutex_initialize(&ut->lock); |
68 | mutex_initialize(&ut->lock, MUTEX_PASSIVE); |
69 | ut->dt_state = UDEBUG_TS_INACTIVE; |
69 | ut->dt_state = UDEBUG_TS_INACTIVE; |
70 | ut->begin_call = NULL; |
70 | ut->begin_call = NULL; |
71 | ut->not_stoppable_count = 0; |
71 | ut->not_stoppable_count = 0; |
72 | ut->evmask = 0; |
72 | ut->evmask = 0; |
73 | } |
73 | } |
74 | 74 | ||
75 | void udebug_thread_initialize(udebug_thread_t *ut) |
75 | void udebug_thread_initialize(udebug_thread_t *ut) |
76 | { |
76 | { |
77 | mutex_initialize(&ut->lock); |
77 | mutex_initialize(&ut->lock, MUTEX_PASSIVE); |
78 | waitq_initialize(&ut->go_wq); |
78 | waitq_initialize(&ut->go_wq); |
79 | 79 | ||
80 | /* |
80 | /* |
81 | * At the beginning the thread is stoppable, so int_lock be set, too. |
81 | * At the beginning the thread is stoppable, so int_lock be set, too. |
82 | */ |
82 | */ |