version 1.1.1.1, 2008/06/03 10:38:45 |
version 1.1.1.1.2.1, 2008/08/13 17:12:31 |
|
|
#ifndef _TASK_H |
#ifndef _TASK_H |
#define _TASK_H |
#define _TASK_H |
|
|
#include <prex/capability.h> |
#include <prex/capability.h> /* for cap_t */ |
#include <timer.h> |
#include <timer.h> |
|
|
/* |
/* |
|
|
struct list link; /* link for all tasks in system */ |
struct list link; /* link for all tasks in system */ |
struct list objects; /* objects owned by this task */ |
struct list objects; /* objects owned by this task */ |
struct list threads; /* threads in this task */ |
struct list threads; /* threads in this task */ |
vm_map_t map; /* virtual memory map */ |
vm_map_t map; /* address space description */ |
int suspend_count; /* suspend counter */ |
int suscnt; /* suspend counter */ |
cap_t capability; /* security permission flag */ |
cap_t capability; /* security permission flag */ |
struct timer alarm; /* alarm timer */ |
struct timer alarm; /* alarm timer */ |
void (*exc_handler)(int, u_long); /* pointer to excepion handler */ |
void (*handler)(int); /* pointer to excepion handler */ |
struct task *parent; /* parent task */ |
task_t parent; /* parent task */ |
}; |
}; |
|
|
#define cur_task() (cur_thread->task) |
#define cur_task() (cur_thread->task) |