Ignore:
File:
1 edited

Legend:

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

    rb7fd2a0 r63e27ef  
    5151#include <udebug/udebug_ipc.h>
    5252
    53 errno_t udebug_request_preprocess(call_t *call, phone_t *phone)
     53int udebug_request_preprocess(call_t *call, phone_t *phone)
    5454{
    5555        switch (IPC_GET_ARG1(call->data)) {
     
    7171static void udebug_receive_begin(call_t *call)
    7272{
    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) {
    7877                IPC_SET_RETVAL(call->data, rc);
    7978                ipc_answer(&TASK->kb.box, call);
     
    8584         * send a reply.
    8685         */
    87         if (active) {
    88                 IPC_SET_RETVAL(call->data, EOK);
     86        if (rc != 0) {
     87                IPC_SET_RETVAL(call->data, 0);
    8988                ipc_answer(&TASK->kb.box, call);
    9089        }
     
    9897static void udebug_receive_end(call_t *call)
    9998{
    100         errno_t rc;
     99        int rc;
    101100
    102101        rc = udebug_end();
     
    113112static void udebug_receive_set_evmask(call_t *call)
    114113{
    115         errno_t rc;
     114        int rc;
    116115        udebug_evmask_t mask;
    117116
     
    132131{
    133132        thread_t *t;
    134         errno_t rc;
     133        int rc;
    135134
    136135        t = (thread_t *)IPC_GET_ARG2(call->data);
    137136
    138137        rc = udebug_go(t, call);
    139         if (rc != EOK) {
     138        if (rc < 0) {
    140139                IPC_SET_RETVAL(call->data, rc);
    141140                ipc_answer(&TASK->kb.box, call);
     
    152151{
    153152        thread_t *t;
    154         errno_t rc;
     153        int rc;
    155154
    156155        t = (thread_t *)IPC_GET_ARG2(call->data);
     
    172171        void *buffer;
    173172        size_t copied, needed;
    174         errno_t rc;
     173        int rc;
    175174
    176175        uspace_addr = IPC_GET_ARG2(call->data); /* Destination address */
     
    182181         */
    183182        rc = udebug_thread_read(&buffer, buf_size, &copied, &needed);
    184         if (rc != EOK) {
     183        if (rc < 0) {
    185184                IPC_SET_RETVAL(call->data, rc);
    186185                ipc_answer(&TASK->kb.box, call);
     
    307306        thread_t *t;
    308307        sysarg_t uspace_addr;
    309         errno_t rc;
     308        int rc;
    310309        void *buffer;
    311310
     
    346345        sysarg_t to_copy;
    347346        void *buffer = NULL;
    348         errno_t rc;
     347        int rc;
    349348
    350349        t = (thread_t *) IPC_GET_ARG2(call->data);
    351350
    352351        rc = udebug_regs_read(t, &buffer);
    353         if (rc != EOK) {
     352        if (rc < 0) {
    354353                IPC_SET_RETVAL(call->data, rc);
    355354                ipc_answer(&TASK->kb.box, call);
     
    390389        unsigned size;
    391390        void *buffer = NULL;
    392         errno_t rc;
     391        int rc;
    393392
    394393        uspace_dst = IPC_GET_ARG2(call->data);
     
    397396
    398397        rc = udebug_mem_read(uspace_src, size, &buffer);
    399         if (rc != EOK) {
     398        if (rc < 0) {
    400399                IPC_SET_RETVAL(call->data, rc);
    401400                ipc_answer(&TASK->kb.box, call);
Note: See TracChangeset for help on using the changeset viewer.