Changeset 7f11dc6 in mainline for kernel/generic/src/udebug


Ignore:
Timestamp:
2017-12-19T18:07:28Z (8 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
897fd8f1
Parents:
219c530
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-19 17:08:09)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-19 18:07:28)
Message:

Numerous minor error code tweaks in kernel.

Location:
kernel/generic/src/udebug
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/udebug/udebug_ipc.c

    r219c530 r7f11dc6  
    137137
    138138        rc = udebug_go(t, call);
    139         if (rc < 0) {
     139        if (rc != EOK) {
    140140                IPC_SET_RETVAL(call->data, rc);
    141141                ipc_answer(&TASK->kb.box, call);
     
    182182         */
    183183        rc = udebug_thread_read(&buffer, buf_size, &copied, &needed);
    184         if (rc < 0) {
     184        if (rc != EOK) {
    185185                IPC_SET_RETVAL(call->data, rc);
    186186                ipc_answer(&TASK->kb.box, call);
     
    351351
    352352        rc = udebug_regs_read(t, &buffer);
    353         if (rc < 0) {
     353        if (rc != EOK) {
    354354                IPC_SET_RETVAL(call->data, rc);
    355355                ipc_answer(&TASK->kb.box, call);
     
    397397
    398398        rc = udebug_mem_read(uspace_src, size, &buffer);
    399         if (rc < 0) {
     399        if (rc != EOK) {
    400400                IPC_SET_RETVAL(call->data, rc);
    401401                ipc_answer(&TASK->kb.box, call);
  • kernel/generic/src/udebug/udebug_ops.c

    r219c530 r7f11dc6  
    253253        mutex_unlock(&TASK->udebug.lock);
    254254       
    255         return 0;
     255        return EOK;
    256256}
    257257
     
    285285        _thread_op_end(thread);
    286286       
    287         return 0;
     287        return EOK;
    288288}
    289289
     
    316316                /* Answer will be sent when the thread becomes stoppable. */
    317317                _thread_op_end(thread);
    318                 return 0;
     318                return EOK;
    319319        }
    320320       
     
    339339        mutex_unlock(&TASK->udebug.lock);
    340340       
    341         return 0;
     341        return EOK;
    342342}
    343343
     
    414414        *needed = (copied_ids + extra_ids) * sizeof(sysarg_t);
    415415       
    416         return 0;
     416        return EOK;
    417417}
    418418
     
    437437        memcpy(*data, TASK->name, name_size);
    438438       
    439         return 0;
     439        return EOK;
    440440}
    441441
     
    480480       
    481481        *buffer = arg_buffer;
    482         return 0;
     482        return EOK;
    483483}
    484484
     
    522522       
    523523        *buffer = (void *) state_buf;
    524         return 0;
     524        return EOK;
    525525}
    526526
     
    560560       
    561561        *buffer = data_buffer;
    562         return 0;
     562        return EOK;
    563563}
    564564
Note: See TracChangeset for help on using the changeset viewer.