Subversion Repositories HelenOS

Rev

Rev 3343 | Rev 3665 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3343 Rev 3397
Line 440... Line 440...
440
     */
440
     */
441
    IPC_SET_ARG4(call.data, 0);
441
    IPC_SET_ARG4(call.data, 0);
442
    IPC_SET_ARG5(call.data, 0);
442
    IPC_SET_ARG5(call.data, 0);
443
 
443
 
444
    if (!(res = request_preprocess(&call))) {
444
    if (!(res = request_preprocess(&call))) {
445
        ipc_call_sync(phone, &call);
445
        rc = ipc_call_sync(phone, &call);
-
 
446
        if (rc != EOK)
-
 
447
            return rc;
446
        process_answer(&call);
448
        process_answer(&call);
447
    } else {
449
    } else {
448
        IPC_SET_RETVAL(call.data, res);
450
        IPC_SET_RETVAL(call.data, res);
449
    }
451
    }
450
    rc = STRUCT_TO_USPACE(&data->args, &call.data.args);
452
    rc = STRUCT_TO_USPACE(&data->args, &call.data.args);
Line 478... Line 480...
478
        return (unative_t) rc;
480
        return (unative_t) rc;
479
 
481
 
480
    GET_CHECK_PHONE(phone, phoneid, return ENOENT);
482
    GET_CHECK_PHONE(phone, phoneid, return ENOENT);
481
 
483
 
482
    if (!(res = request_preprocess(&call))) {
484
    if (!(res = request_preprocess(&call))) {
483
        ipc_call_sync(phone, &call);
485
        rc = ipc_call_sync(phone, &call);
-
 
486
        if (rc != EOK)
-
 
487
            return rc;
484
        process_answer(&call);
488
        process_answer(&call);
485
    } else
489
    } else
486
        IPC_SET_RETVAL(call.data, res);
490
        IPC_SET_RETVAL(call.data, res);
487
 
491
 
488
    rc = STRUCT_TO_USPACE(&reply->args, &call.data.args);
492
    rc = STRUCT_TO_USPACE(&reply->args, &call.data.args);