Subversion Repositories HelenOS

Rev

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

Rev 2801 Rev 2805
Line 8... Line 8...
8
{
8
{
9
    int taskid;
9
    int taskid;
10
    int rc;
10
    int rc;
11
    int phoneid;
11
    int phoneid;
12
    int i;
12
    int i;
-
 
13
    unsigned sc_args[6];
-
 
14
    unsigned copied;
-
 
15
    unsigned ev_type;
-
 
16
    unsigned sc_id;
-
 
17
    int sc_rc;
13
 
18
 
14
    printf("running debug1 test\n");
19
    printf("running debug1 test\n");
15
    taskid = 12;
20
    taskid = 12;
16
    printf("ipc_connect_task(%d)...\n", taskid);
21
    printf("ipc_connect_task(%d)...\n", taskid);
17
    rc = ipc_connect_task(taskid);
22
    rc = ipc_connect_task(taskid);
Line 21... Line 26...
21
    printf("send IPC_M_DEBUG_BEGIN message\n");
26
    printf("send IPC_M_DEBUG_BEGIN message\n");
22
    rc = ipc_call_sync_0_0(phoneid, IPC_M_DEBUG_BEGIN);
27
    rc = ipc_call_sync_0_0(phoneid, IPC_M_DEBUG_BEGIN);
23
    printf("-> %d\n", rc);
28
    printf("-> %d\n", rc);
24
 
29
 
25
    while (1) {
30
    while (1) {
26
        printf("send IPC_M_DEBUG_GO message\n");
31
        rc = ipc_call_sync_0_3(phoneid, IPC_M_DEBUG_GO, &ev_type,
-
 
32
            &sc_id, &sc_rc);
27
        rc = ipc_call_sync_0_0(phoneid, IPC_M_DEBUG_GO);
33
        rc = ipc_call_sync_3_1(phoneid, IPC_M_DEBUG_ARGS_READ, NULL,
-
 
34
            sc_args, 6 * sizeof(unsigned), &copied);
-
 
35
        if (rc >= 0) {
-
 
36
            printf("id %u(%u, %u, %u, %u, %u, %u) -> %d\n",
-
 
37
                sc_id,
-
 
38
                sc_args[0], sc_args[1], sc_args[2],
-
 
39
                sc_args[3], sc_args[4], sc_args[5],
28
        printf("-> %d\n", rc);
40
                sc_rc);
-
 
41
        }
29
    }
42
    }
30
 
43
 
31
    printf("done\n");
44
    printf("done\n");
32
    return NULL;
45
    return NULL;
33
}
46
}