Changes in kernel/generic/src/udebug/udebug_ipc.c [7f11dc6:63e27ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/udebug/udebug_ipc.c
r7f11dc6 r63e27ef 72 72 { 73 73 int rc; 74 bool active; 75 76 rc = udebug_begin(call, &active); 77 if (rc != EOK) { 74 75 rc = udebug_begin(call); 76 if (rc < 0) { 78 77 IPC_SET_RETVAL(call->data, rc); 79 78 ipc_answer(&TASK->kb.box, call); … … 85 84 * send a reply. 86 85 */ 87 if ( active) {88 IPC_SET_RETVAL(call->data, EOK);86 if (rc != 0) { 87 IPC_SET_RETVAL(call->data, 0); 89 88 ipc_answer(&TASK->kb.box, call); 90 89 } … … 137 136 138 137 rc = udebug_go(t, call); 139 if (rc != EOK) {138 if (rc < 0) { 140 139 IPC_SET_RETVAL(call->data, rc); 141 140 ipc_answer(&TASK->kb.box, call); … … 182 181 */ 183 182 rc = udebug_thread_read(&buffer, buf_size, &copied, &needed); 184 if (rc != EOK) {183 if (rc < 0) { 185 184 IPC_SET_RETVAL(call->data, rc); 186 185 ipc_answer(&TASK->kb.box, call); … … 351 350 352 351 rc = udebug_regs_read(t, &buffer); 353 if (rc != EOK) {352 if (rc < 0) { 354 353 IPC_SET_RETVAL(call->data, rc); 355 354 ipc_answer(&TASK->kb.box, call); … … 397 396 398 397 rc = udebug_mem_read(uspace_src, size, &buffer); 399 if (rc != EOK) {398 if (rc < 0) { 400 399 IPC_SET_RETVAL(call->data, rc); 401 400 ipc_answer(&TASK->kb.box, call);
Note:
See TracChangeset
for help on using the changeset viewer.