Changeset b74959bd in mainline for uspace/srv/rd/rd.c


Ignore:
Timestamp:
2007-11-20T21:33:32Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8498915
Parents:
3209923
Message:

Modify ipc_answer_*() to make use of all six syscall arguments. The recommended
means of answering calls is via the ipc_answer_m() macros (where m denotes the
number of return arguments) that automatically decide between the fast register
version or the slow universal version of ipc_answer().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/rd/rd.c

    r3209923 rb74959bd  
    9191                 * This is the answer to the call that opened the connection.
    9292                 */
    93                 ipc_answer_fast(iid, EHANGUP, 0, 0);
     93                ipc_answer_0(iid, EHANGUP);
    9494                return;
    9595        } else {
     
    9898                 * Return supported block size as ARG1.
    9999                 */
    100                 ipc_answer_fast(iid, EOK, BLOCK_SIZE, 0);
     100                ipc_answer_1(iid, EOK, BLOCK_SIZE);
    101101        }
    102102
     
    111111                         * block.
    112112                         */
    113                         ipc_answer_fast(callid, EOK, (uintptr_t) fs_va, 0);
     113                        ipc_answer_1(callid, EOK, (uintptr_t) fs_va);
    114114                } else {
    115115                        /*
     
    117117                         * Close the connection.
    118118                         */
    119                         ipc_answer_fast(callid, EHANGUP, 0, 0);
     119                        ipc_answer_0(callid, EHANGUP);
    120120                        return;         
    121121                }
     
    126126                 * Close the connection.
    127127                 */
    128                 ipc_answer_fast(callid, EHANGUP, 0, 0);
     128                ipc_answer_0(callid, EHANGUP);
    129129                return;
    130130        }
     
    138138                         * Answer the message and exit the fibril.
    139139                         */
    140                         ipc_answer_fast(callid, EOK, 0, 0);
     140                        ipc_answer_0(callid, EOK);
    141141                        return;
    142142                case RD_READ_BLOCK:
     
    178178                        break;
    179179                }
    180                 ipc_answer_fast(callid, retval, 0, 0);
     180                ipc_answer_0(callid, retval);
    181181        }
    182182}
Note: See TracChangeset for help on using the changeset viewer.