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