Ignore:
Timestamp:
2017-12-11T09:42:42Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
16f2dcc
Parents:
9b07fba
git-author:
Jiri Svoboda <jiri@…> (2017-12-10 22:41:37)
git-committer:
Jiri Svoboda <jiri@…> (2017-12-11 09:42:42)
Message:

Separate error code from output parameter in udebug_begin().

File:
1 edited

Legend:

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

    r9b07fba rb2a1fd92  
    7272{
    7373        int rc;
    74 
    75         rc = udebug_begin(call);
    76         if (rc < 0) {
     74        bool active;
     75
     76        rc = udebug_begin(call, &active);
     77        if (rc != EOK) {
    7778                IPC_SET_RETVAL(call->data, rc);
    7879                ipc_answer(&TASK->kb.box, call);
     
    8485         * send a reply.
    8586         */
    86         if (rc != 0) {
    87                 IPC_SET_RETVAL(call->data, 0);
     87        if (active) {
     88                IPC_SET_RETVAL(call->data, EOK);
    8889                ipc_answer(&TASK->kb.box, call);
    8990        }
Note: See TracChangeset for help on using the changeset viewer.