diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2014-12-07 20:11:06 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2014-12-07 20:11:06 +0100 |
commit | bd1ed224590700c7568dd6a73a2dadcda238b1d5 (patch) | |
tree | 65d1204bfd1ef486529c314f3c9f942bd728e78e /kernel/include/task.h | |
parent | f0475a3d517b4df8eb2b73f22eaec91a72bcc51f (diff) | |
download | kogata-bd1ed224590700c7568dd6a73a2dadcda238b1d5.tar.gz kogata-bd1ed224590700c7568dd6a73a2dadcda238b1d5.zip |
Information about current PD now stored in current_task->current_pd_d
Diffstat (limited to 'kernel/include/task.h')
-rw-r--r-- | kernel/include/task.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/include/task.h b/kernel/include/task.h index 8ba50b0..2c3f6ef 100644 --- a/kernel/include/task.h +++ b/kernel/include/task.h @@ -1,6 +1,7 @@ #pragma once #include <sys.h> +#include <paging.h> #include <region.h> #define T_STATE_RUNNING 1 @@ -9,6 +10,8 @@ #define KPROC_STACK_SIZE 0x8000 // 8Kb +#define TASK_SWITCH_FREQUENCY 100 // in herz + typedef struct saved_context { uint32_t *esp; void (*eip)(); @@ -16,6 +19,7 @@ typedef struct saved_context { typedef struct task { saved_context_t ctx; + pagedir_t *current_pd_d; uint32_t state; void* result; |