Changeset b74959bd in mainline for kernel/generic/src/ipc


Ignore:
Timestamp:
2007-11-20T21:33:32Z (18 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
  • kernel/generic/src/ipc/sysipc.c

    r3209923 rb74959bd  
    593593 * @param arg1          Service-defined return value.
    594594 * @param arg2          Service-defined return value.
     595 * @param arg3          Service-defined return value.
     596 * @param arg4          Service-defined return value.
    595597 *
    596598 * @return              Return 0 on success, otherwise return an error code.   
    597599 */
    598600unative_t sys_ipc_answer_fast(unative_t callid, unative_t retval,
    599     unative_t arg1, unative_t arg2)
     601    unative_t arg1, unative_t arg2, unative_t arg3, unative_t arg4)
    600602{
    601603        call_t *call;
     
    620622        IPC_SET_ARG1(call->data, arg1);
    621623        IPC_SET_ARG2(call->data, arg2);
     624        IPC_SET_ARG3(call->data, arg3);
     625        IPC_SET_ARG4(call->data, arg4);
    622626        rc = answer_preprocess(call, saveddata ? &saved_data : NULL);
    623627
     
    633637 * @return              Return 0 on success, otherwise return an error code.
    634638 */
    635 unative_t sys_ipc_answer(unative_t callid, ipc_data_t *data)
     639unative_t sys_ipc_answer_slow(unative_t callid, ipc_data_t *data)
    636640{
    637641        call_t *call;
Note: See TracChangeset for help on using the changeset viewer.