Changeset ab34cc9 in mainline for uspace/lib/c/generic/ipc.c


Ignore:
Timestamp:
2011-08-19T18:03:34Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7b2a7ad
Parents:
16f9782
Message:

Make IPC_M_CONNECT_TO_ME more consistent with IPC_M_CONNECT_TO_ME.

  • Instead of passing the task ID of the connecting task in IPC argument 3 and 4, pass it in ipc_call_t::in_task_id.
  • Actually, all answers are signed by the answering task ID like this.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/ipc.c

    r16f9782 rab34cc9  
    629629    task_id_t *task_id, sysarg_t *phonehash)
    630630{
    631         sysarg_t task_id_lo = 0;
    632         sysarg_t task_id_hi = 0;
    633         int rc;
    634 
    635         rc = ipc_call_sync_3_5(phoneid, IPC_M_CONNECT_TO_ME, arg1, arg2, arg3,
    636             NULL, NULL, &task_id_lo, &task_id_hi, phonehash);
    637 
    638         *task_id = (task_id_t) MERGE_LOUP32(task_id_lo, task_id_hi);
     631        ipc_call_t data;
     632        int rc = __SYSCALL6(SYS_IPC_CALL_SYNC_FAST, phoneid,
     633            IPC_M_CONNECT_TO_ME, arg1, arg2, arg3, (sysarg_t) &data);
     634        if (rc == EOK) {
     635                *task_id = data.in_task_id;
     636                *phonehash = IPC_GET_ARG5(data);
     637        }       
    639638        return rc;
    640639}
Note: See TracChangeset for help on using the changeset viewer.