Changes in kernel/generic/src/udebug/udebug_ipc.c [b7fd2a0:63e27ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/udebug/udebug_ipc.c
rb7fd2a0 r63e27ef 51 51 #include <udebug/udebug_ipc.h> 52 52 53 errno_t udebug_request_preprocess(call_t *call, phone_t *phone)53 int udebug_request_preprocess(call_t *call, phone_t *phone) 54 54 { 55 55 switch (IPC_GET_ARG1(call->data)) { … … 71 71 static void udebug_receive_begin(call_t *call) 72 72 { 73 errno_t rc; 74 bool active; 75 76 rc = udebug_begin(call, &active); 77 if (rc != EOK) { 73 int rc; 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 } … … 98 97 static void udebug_receive_end(call_t *call) 99 98 { 100 errno_t rc;99 int rc; 101 100 102 101 rc = udebug_end(); … … 113 112 static void udebug_receive_set_evmask(call_t *call) 114 113 { 115 errno_t rc;114 int rc; 116 115 udebug_evmask_t mask; 117 116 … … 132 131 { 133 132 thread_t *t; 134 errno_t rc;133 int rc; 135 134 136 135 t = (thread_t *)IPC_GET_ARG2(call->data); 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); … … 152 151 { 153 152 thread_t *t; 154 errno_t rc;153 int rc; 155 154 156 155 t = (thread_t *)IPC_GET_ARG2(call->data); … … 172 171 void *buffer; 173 172 size_t copied, needed; 174 errno_t rc;173 int rc; 175 174 176 175 uspace_addr = IPC_GET_ARG2(call->data); /* Destination address */ … … 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); … … 307 306 thread_t *t; 308 307 sysarg_t uspace_addr; 309 errno_t rc;308 int rc; 310 309 void *buffer; 311 310 … … 346 345 sysarg_t to_copy; 347 346 void *buffer = NULL; 348 errno_t rc;347 int rc; 349 348 350 349 t = (thread_t *) IPC_GET_ARG2(call->data); 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); … … 390 389 unsigned size; 391 390 void *buffer = NULL; 392 errno_t rc;391 int rc; 393 392 394 393 uspace_dst = IPC_GET_ARG2(call->data); … … 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.