52,7 → 52,11 |
#include <arch/cpu.h> |
#include <mm/tlb.h> |
#include <proc/scheduler.h> |
#include <udebug/udebug.h> |
#include <ipc/kbox.h> |
|
#define TASK_NAME_BUFLEN 20 |
|
struct thread; |
|
/** Task structure. */ |
66,8 → 70,8 |
* threads. |
*/ |
SPINLOCK_DECLARE(lock); |
|
char *name; |
|
char name[TASK_NAME_BUFLEN]; |
/** List of threads contained in this task. */ |
link_t th_head; |
/** Address space. */ |
93,7 → 97,15 |
* certain extent. |
*/ |
atomic_t active_calls; |
|
|
#ifdef CONFIG_UDEBUG |
/** Debugging stuff. */ |
udebug_task_t udebug; |
|
/** Kernel answerbox. */ |
kbox_t kb; |
#endif |
|
/** Architecture specific task data. */ |
task_arch_t arch; |
|
132,6 → 144,7 |
#endif |
|
extern unative_t sys_task_get_id(task_id_t *uspace_task_id); |
extern unative_t sys_task_set_name(const char *uspace_name, size_t name_len); |
|
#endif |
|