Subversion Repositories HelenOS

Rev

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

Rev 954 Rev 960
Line 27... Line 27...
27
 */
27
 */
28
 
28
 
29
#include <ipc.h>
29
#include <ipc.h>
30
#include <libc.h>
30
#include <libc.h>
31
 
31
 
32
static inline ipc_callid_t _ipc_call(int phoneid, int arg1, int arg2)
32
int ipc_call_sync(int phoneid, int arg1, int arg2, ipc_data_t *resdata)
33
{
33
{
34
    __SYSCALL3(SYS_IPC_CALL, phoneid, arg1, arg2);
34
    return __SYSCALL4(SYS_IPC_CALL_SYNC, phoneid, arg1, arg2,
35
}
-
 
36
 
-
 
37
int ipc_call_sync(int phoneid, int arg1, int arg2)
-
 
38
{
-
 
39
    ipc_data_t resdata;
35
              (sysarg_t)resdata);
40
 
-
 
41
    _ipc_call(phoneid, arg1, arg2);
-
 
42
    ipc_wait_for_call(&resdata,0);
-
 
43
}
36
}
44
 
37
 
45
/*
38
/*
46
int ipc_call_async()
39
int ipc_call_async()
47
{
40
{