Subversion Repositories HelenOS

Rev

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

Rev 2874 Rev 2877
Line 152... Line 152...
152
{
152
{
153
    ipc_call_t question, reply;
153
    ipc_call_t question, reply;
154
    int rc;
154
    int rc;
155
    int phoneidx;
155
    int phoneidx;
156
 
156
 
157
    printf("sc_ipc_call_sync_fast()\n");
157
//  printf("sc_ipc_call_sync_fast()\n");
158
    phoneidx = sc_args[0];
158
    phoneidx = sc_args[0];
159
 
159
 
160
    IPC_SET_METHOD(question, sc_args[1]);
160
    IPC_SET_METHOD(question, sc_args[1]);
161
    IPC_SET_ARG1(question, sc_args[2]);
161
    IPC_SET_ARG1(question, sc_args[2]);
162
    IPC_SET_ARG2(question, sc_args[3]);
162
    IPC_SET_ARG2(question, sc_args[3]);
163
    IPC_SET_ARG3(question, sc_args[4]);
163
    IPC_SET_ARG3(question, sc_args[4]);
164
    IPC_SET_ARG4(question, 0);
164
    IPC_SET_ARG4(question, 0);
165
    IPC_SET_ARG5(question, 0);
165
    IPC_SET_ARG5(question, 0);
166
 
166
 
167
    printf("memset\n");
167
//  printf("memset\n");
168
    memset(&reply, 0, sizeof(reply));
168
    memset(&reply, 0, sizeof(reply));
169
    printf("debug_mem_read(phone=%d, buffer_ptr=%u, src_addr=%d, n=%d\n",
169
//  printf("debug_mem_read(phone=%d, buffer_ptr=%u, src_addr=%d, n=%d\n",
170
        phoneid, &reply.args, sc_args[5], sizeof(reply.args));
170
//      phoneid, &reply.args, sc_args[5], sizeof(reply.args));
171
    rc = debug_mem_read(phoneid, &reply.args, sc_args[5], sizeof(reply.args));
171
    rc = debug_mem_read(phoneid, &reply.args, sc_args[5], sizeof(reply.args));
172
    printf("dmr->%d\n", rc);
172
//  printf("dmr->%d\n", rc);
173
    if (rc < 0) return;
173
    if (rc < 0) return;
174
 
174
 
175
    printf("call ipc_call_sync\n");
175
//  printf("call ipc_call_sync\n");
176
    ipcp_call_sync(phoneidx, &question, &reply);
176
    ipcp_call_sync(phoneidx, &question, &reply);
177
}
177
}
178
 
178
 
179
void sc_ipc_call_sync_slow(unsigned *sc_args)
179
void sc_ipc_call_sync_slow(unsigned *sc_args)
180
{
180
{