aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/include/process.h
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-13 21:52:48 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-13 21:52:48 +0100
commit47e6cd42f0744f6c04b8347093f6549339a856c9 (patch)
treec91fc43178d136c2aa0f093087ba8cfb4e90bdae /src/kernel/include/process.h
parentcf0b8a52287ee7c747b1d5a7d77abdef1fb46f94 (diff)
downloadkogata-47e6cd42f0744f6c04b8347093f6549339a856c9.tar.gz
kogata-47e6cd42f0744f6c04b8347093f6549339a856c9.zip
Implement ELF loading ; arrange so that user processes run.
Diffstat (limited to 'src/kernel/include/process.h')
-rw-r--r--src/kernel/include/process.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/kernel/include/process.h b/src/kernel/include/process.h
index d67ede6..661aaa6 100644
--- a/src/kernel/include/process.h
+++ b/src/kernel/include/process.h
@@ -27,12 +27,16 @@
struct process;
typedef struct process process_t;
+typedef void* proc_entry_t;
+
process_t *current_process();
process_t *new_process(process_t *parent);
// void delete_process(process_t *p); // TODO define semantics for freeing stuff
-bool start_process(process_t *p, void* entry); // maps a region for user stack
+pagedir_t *proc_pagedir(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);
fs_t *proc_find_fs(process_t *p, const char* name);