diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-14 11:07:31 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-14 11:07:31 +0100 |
commit | 630c28c3fd3297c7a0ea7ec7ad4417f521fdaa7f (patch) | |
tree | f8c1bfe9da8dc23a69d8982bfb2b4e19d517f820 /src/kernel/include | |
parent | 706c69d40fcc46e7d7f170dab932d3c7fcc7c34e (diff) | |
download | kogata-630c28c3fd3297c7a0ea7ec7ad4417f521fdaa7f.tar.gz kogata-630c28c3fd3297c7a0ea7ec7ad4417f521fdaa7f.zip |
Change a bit of structure
Diffstat (limited to 'src/kernel/include')
-rw-r--r-- | src/kernel/include/process.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/kernel/include/process.h b/src/kernel/include/process.h index 82ba8dd..c9615d7 100644 --- a/src/kernel/include/process.h +++ b/src/kernel/include/process.h @@ -24,8 +24,18 @@ #define USERSTACK_ADDR 0xB8000000 #define USERSTACK_SIZE 0x00020000 // 32 KB -struct process; -typedef struct process process_t; +struct user_region; +typedef struct process { + pagedir_t *pd; + struct user_region *regions; + + hashtbl_t *filesystems; + + thread_t *thread; + + int pid; + struct process *parent; +} process_t; typedef void* proc_entry_t; @@ -34,9 +44,6 @@ process_t *current_process(); process_t *new_process(process_t *parent); // void delete_process(process_t *p); // TODO define semantics for freeing stuff -pagedir_t *proc_pagedir(process_t *p); -int proc_pid(process_t *p); - bool start_process(process_t *p, proc_entry_t entry); // maps a region for user stack bool proc_add_fs(process_t *p, fs_t *fs, const char* name); |