Changes in kernel/generic/src/udebug/udebug.c [feeac0d:63e27ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/udebug/udebug.c
rfeeac0d r63e27ef 38 38 */ 39 39 40 #include <assert.h> 41 #include <debug.h> 40 42 #include <synch/waitq.h> 41 #include <debug.h>42 43 #include <udebug/udebug.h> 43 44 #include <errno.h> 44 45 #include <print.h> 45 46 #include <arch.h> 47 #include <proc/task.h> 48 #include <proc/thread.h> 46 49 47 50 /** Initialize udebug part of task structure. … … 114 117 void udebug_stoppable_begin(void) 115 118 { 116 ASSERT(THREAD);117 ASSERT(TASK);119 assert(THREAD); 120 assert(TASK); 118 121 119 122 mutex_lock(&TASK->udebug.lock); … … 123 126 /* Lock order OK, THREAD->udebug.lock is after TASK->udebug.lock */ 124 127 mutex_lock(&THREAD->udebug.lock); 125 ASSERT(THREAD->udebug.stoppable == false);128 assert(THREAD->udebug.stoppable == false); 126 129 THREAD->udebug.stoppable = true; 127 130 … … 134 137 135 138 call_t *db_call = TASK->udebug.begin_call; 136 ASSERT(db_call);139 assert(db_call); 137 140 138 141 TASK->udebug.dt_state = UDEBUG_TS_ACTIVE; … … 156 159 call_t *go_call = THREAD->udebug.go_call; 157 160 THREAD->udebug.go_call = NULL; 158 ASSERT(go_call);161 assert(go_call); 159 162 160 163 IPC_SET_RETVAL(go_call->data, 0); … … 193 196 } else { 194 197 ++TASK->udebug.not_stoppable_count; 195 ASSERT(THREAD->udebug.stoppable == true);198 assert(THREAD->udebug.stoppable == true); 196 199 THREAD->udebug.stoppable = false; 197 200 … … 396 399 int udebug_task_cleanup(struct task *task) 397 400 { 398 ASSERT(mutex_locked(&task->udebug.lock));401 assert(mutex_locked(&task->udebug.lock)); 399 402 400 403 if ((task->udebug.dt_state != UDEBUG_TS_BEGINNING) &&
Note:
See TracChangeset
for help on using the changeset viewer.