Changeset 2e3355a in mainline


Ignore:
Timestamp:
2008-09-20T11:43:36Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3b8fe85
Parents:
94e152a
Message:

Include trace on sparc64 ramdisk. Assorted fixes.

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/sparc64/loader/Makefile

    r94e152a r2e3355a  
    105105        $(USPACEDIR)/app/tetris/tetris \
    106106        $(USPACEDIR)/app/tester/tester \
     107        $(USPACEDIR)/app/trace/trace \
    107108        $(USPACEDIR)/app/bdsh/bdsh \
    108109        $(USPACEDIR)/app/klog/klog
  • uspace/app/trace/ipcp.c

    r94e152a r2e3355a  
    288288                oper = pcall->oper;
    289289
    290                 if (oper != NULL && oper->rv_type != V_VOID || oper->respc > 0) {
     290                if (oper != NULL && (oper->rv_type != V_VOID || oper->respc > 0)) {
    291291                        printf("->");
    292292
  • uspace/lib/libc/generic/task.c

    r94e152a r2e3355a  
    124124 * @return      ID of the newly created task or zero on error.
    125125 */
    126 task_id_t task_spawn(const char *path, const char *argv[])
     126task_id_t task_spawn(const char *path, char *const argv[])
    127127{
    128128        int phone_id;
  • uspace/lib/libc/generic/udebug.c

    r94e152a r2e3355a  
    5858        size_t *copied, size_t *needed)
    5959{
    60         return async_req_3_3(phoneid, IPC_M_DEBUG_ALL, UDEBUG_M_THREAD_READ,
    61                 (sysarg_t)buffer, n, NULL, copied, needed);
     60        ipcarg_t a_copied, a_needed;
     61        int rc;
     62
     63        rc = async_req_3_3(phoneid, IPC_M_DEBUG_ALL, UDEBUG_M_THREAD_READ,
     64                (sysarg_t)buffer, n, NULL, &a_copied, &a_needed);
     65
     66        *copied = (size_t)a_copied;
     67        *needed = (size_t)a_needed;
     68
     69        return rc;
    6270}
    6371
     
    7785    sysarg_t *val0, sysarg_t *val1)
    7886{
    79         return async_req_2_3(phoneid, IPC_M_DEBUG_ALL, UDEBUG_M_GO,
    80             tid, (sysarg_t)ev_type, (sysarg_t)val0, (sysarg_t)val1);
     87        ipcarg_t a_ev_type;
     88        int rc;
     89
     90        rc =  async_req_2_3(phoneid, IPC_M_DEBUG_ALL, UDEBUG_M_GO,
     91            tid, &a_ev_type, val0, val1);
     92
     93        *ev_type = a_ev_type;
     94        return rc;
    8195}
    8296
  • uspace/lib/libc/include/task.h

    r94e152a r2e3355a  
    4141
    4242extern task_id_t task_get_id(void);
    43 extern task_id_t task_spawn(const char *path, const char *argv[]);
     43extern task_id_t task_spawn(const char *path, char *const argv[]);
    4444
    4545#endif
Note: See TracChangeset for help on using the changeset viewer.