Subversion Repositories HelenOS

Rev

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

Rev 2832 Rev 2833
Line 30... Line 30...
30
        (sysarg_t)buffer, addr, n);
30
        (sysarg_t)buffer, addr, n);
31
}
31
}
32
 
32
 
33
int debug_args_read(unsigned phoneid, unsigned tid, unsigned *buffer)
33
int debug_args_read(unsigned phoneid, unsigned tid, unsigned *buffer)
34
{
34
{
35
    unsigned copied;
-
 
36
    int rc;
-
 
37
 
-
 
38
    rc = ipc_call_sync_4_1(phoneid, IPC_M_DEBUG_ALL, UDEBUG_M_ARGS_READ,
35
    return ipc_call_sync_3_0(phoneid, IPC_M_DEBUG_ALL, UDEBUG_M_ARGS_READ,
39
        tid, (sysarg_t)buffer, 6 * sizeof(unsigned), &copied);
36
        tid, (sysarg_t)buffer);
40
 
-
 
41
    if (copied != 6 * sizeof(unsigned)) {
-
 
42
        printf("Warning: read %d bytes from syscall args instead of 24!\n",
-
 
43
            copied);
-
 
44
    }
-
 
45
 
-
 
46
    return rc;
-
 
47
}
37
}
48
 
38
 
49
int debug_go(unsigned phoneid, unsigned tid, unsigned *ev_type,
39
int debug_go(unsigned phoneid, unsigned tid, unsigned *ev_type,
50
    unsigned *sc_id, unsigned *sc_rc)
40
    unsigned *sc_id, unsigned *sc_rc)
51
{
41
{