Rev 2807 | Rev 2809 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2807 | Rev 2808 | ||
---|---|---|---|
Line 54... | Line 54... | ||
54 | int tb_copied, tb_needed; |
54 | int tb_copied, tb_needed; |
55 | 55 | ||
56 | printf("running debug1 test\n"); |
56 | printf("running debug1 test\n"); |
57 | taskid = 12; |
57 | taskid = 12; |
58 | printf("ipc_connect_task(%d)...\n", taskid); |
58 | printf("ipc_connect_task(%d)...\n", taskid); |
59 | rc = ipc_connect_task(taskid); |
59 | rc = ipc_connect_kbox(taskid); |
60 | printf("-> %d\n", rc); |
60 | printf("-> %d\n", rc); |
61 | phoneid = rc; |
61 | phoneid = rc; |
62 | 62 | ||
63 | printf("send IPC_M_DEBUG_BEGIN message\n"); |
63 | printf("send IPC_M_DEBUG_BEGIN message\n"); |
64 | rc = ipc_call_sync_0_0(phoneid, IPC_M_DEBUG_BEGIN); |
64 | rc = ipc_call_sync_0_0(phoneid, IPC_M_DEBUG_BEGIN); |
Line 70... | Line 70... | ||
70 | &tb_copied, &tb_needed); |
70 | &tb_copied, &tb_needed); |
71 | printf("-> %d\n", rc); |
71 | printf("-> %d\n", rc); |
72 | 72 | ||
73 | printf("thread IDs:"); |
73 | printf("thread IDs:"); |
74 | for (i=0; i<tb_copied / sizeof(unsigned); i++) { |
74 | for (i=0; i<tb_copied / sizeof(unsigned); i++) { |
75 | printf("%u", threadid_buf[i]); |
75 | printf(" %u", threadid_buf[i]); |
76 | } |
76 | } |
77 | printf("\ntotal of %u threads\n", tb_needed/sizeof(unsigned)); |
77 | printf("\ntotal of %u threads\n", tb_needed/sizeof(unsigned)); |
78 | 78 | ||
79 | while (1) { |
79 | while (1) { |
80 | rc = ipc_call_sync_1_3(phoneid, IPC_M_DEBUG_GO, threadid_buf[0], |
80 | rc = ipc_call_sync_1_3(phoneid, IPC_M_DEBUG_GO, threadid_buf[0], |