Changeset 9a1b20c in mainline for kernel/generic/include


Ignore:
Timestamp:
2008-09-17T12:16:27Z (17 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fb9b0b0
Parents:
06a195bc
Message:

Merge syscall tracer (trace) and relevant part of udebug interface from tracing to trunk.

Location:
kernel/generic/include
Files:
4 added
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/ipc/ipc.h

    r06a195bc r9a1b20c  
    195195 */
    196196#define IPC_M_DATA_READ         7
     197
     198/** Debug the recipient.
     199 * - ARG1 - specifies the debug method (from udebug_method_t)
     200 * - other arguments are specific to the debug method
     201 */
     202#define IPC_M_DEBUG_ALL         8
    197203
    198204/* Well-known methods */
     
    308314extern void ipc_backsend_err(phone_t *, call_t *, unative_t);
    309315extern void ipc_print_task(task_id_t);
     316extern void ipc_answerbox_slam_phones(answerbox_t *, bool);
     317extern void ipc_cleanup_call_list(link_t *);
    310318
    311319extern answerbox_t *ipc_phone_0;
  • kernel/generic/include/ipc/sysipc.h

    r06a195bc r9a1b20c  
    5858    irq_code_t *ucode);
    5959unative_t sys_ipc_unregister_irq(inr_t inr, devno_t devno);
     60unative_t sys_ipc_connect_kbox(sysarg64_t *task_id);
    6061
    6162#endif
  • kernel/generic/include/proc/task.h

    r06a195bc r9a1b20c  
    5353#include <mm/tlb.h>
    5454#include <proc/scheduler.h>
     55#include <udebug/udebug.h>
    5556
    5657struct thread;
     
    9495         */
    9596        atomic_t active_calls;
     97
     98#ifdef CONFIG_UDEBUG
     99        /** Debugging stuff */
     100        udebug_task_t udebug;
     101
     102        /** Kernel answerbox */
     103        answerbox_t kernel_box;
     104        /** Thread used to service kernel answerbox */
     105        struct thread *kb_thread;
     106        /** Kbox thread creation vs. begin of cleanup mutual exclusion */
     107        mutex_t kb_cleanup_lock;
     108        /** True if cleanup of kbox has already started */
     109        bool kb_finished;
     110#endif
    96111       
    97112        /** Architecture specific task data. */
  • kernel/generic/include/proc/thread.h

    r06a195bc r9a1b20c  
    4747#include <mm/tlb.h>
    4848#include <proc/uarg.h>
     49#include <udebug/udebug.h>
    4950
    5051#define THREAD_STACK_SIZE       STACK_SIZE
     
    204205        /** Thread's kernel stack. */
    205206        uint8_t *kstack;
     207
     208#ifdef CONFIG_UDEBUG
     209        /** Debugging stuff */
     210        udebug_thread_t udebug;
     211#endif
     212
    206213} thread_t;
    207214
  • kernel/generic/include/syscall/syscall.h

    r06a195bc r9a1b20c  
    7979       
    8080        SYS_DEBUG_ENABLE_CONSOLE,
     81        SYS_IPC_CONNECT_KBOX,
    8182        SYSCALL_END
    8283} syscall_t;
Note: See TracChangeset for help on using the changeset viewer.