From 47e6cd42f0744f6c04b8347093f6549339a856c9 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 13 Feb 2015 21:52:48 +0100 Subject: Implement ELF loading ; arrange so that user processes run. --- src/kernel/include/process.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/kernel/include/process.h') 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); -- cgit v1.2.3