Changeset 31696b4f in mainline for kernel/generic/include


Ignore:
Timestamp:
2008-11-23T10:59:21Z (17 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
50e5b25
Parents:
0aa1665
Message:

Move stuff related to kbox to a separate struct.

Location:
kernel/generic/include
Files:
2 edited

Legend:

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

    r0aa1665 r31696b4f  
    3838#include <typedefs.h>
    3939
     40/** Kernel answerbox structure. */
     41typedef struct kbox {
     42        /** The answerbox itself. */
     43        answerbox_t box;
     44        /** Thread used to service the answerbox. */
     45        struct thread *thread;
     46        /** Kbox thread creation vs. begin of cleanup mutual exclusion. */
     47        mutex_t cleanup_lock;
     48        /** True if cleanup of kbox has already started. */
     49        bool finished;
     50} kbox_t;
     51
    4052extern int ipc_connect_kbox(task_id_t);
    4153extern void ipc_kbox_cleanup(void);
  • kernel/generic/include/proc/task.h

    r0aa1665 r31696b4f  
    5454#include <proc/scheduler.h>
    5555#include <udebug/udebug.h>
     56#include <ipc/kbox.h>
    5657
    5758#define TASK_NAME_BUFLEN        20
     
    99100
    100101#ifdef CONFIG_UDEBUG
    101         /** Debugging stuff */
     102        /** Debugging stuff. */
    102103        udebug_task_t udebug;
    103104
    104         /** Kernel answerbox */
    105         answerbox_t kernel_box;
    106         /** Thread used to service kernel answerbox */
    107         struct thread *kb_thread;
    108         /** Kbox thread creation vs. begin of cleanup mutual exclusion */
    109         mutex_t kb_cleanup_lock;
    110         /** True if cleanup of kbox has already started */
    111         bool kb_finished;
     105        /** Kernel answerbox. */
     106        kbox_t kb;
    112107#endif
    113        
     108
    114109        /** Architecture specific task data. */
    115110        task_arch_t arch;
Note: See TracChangeset for help on using the changeset viewer.