summaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/main.c2
-rw-r--r--src/kernel/proc.c2
-rw-r--r--src/kernel/proc.h3
3 files changed, 4 insertions, 3 deletions
diff --git a/src/kernel/main.c b/src/kernel/main.c
index 894ce18..7864699 100644
--- a/src/kernel/main.c
+++ b/src/kernel/main.c
@@ -7,7 +7,7 @@
#include <stdint.h>
static void run_init(struct kmain_info *info) {
- struct process *proc = process_new();
+ struct process *proc = process_seed();
void *init_base = (void*) 0x200000;
// map the module as rw
diff --git a/src/kernel/proc.c b/src/kernel/proc.c
index 36c88b5..8a80754 100644
--- a/src/kernel/proc.c
+++ b/src/kernel/proc.c
@@ -7,7 +7,7 @@
struct process *process_first;
struct process *process_current;
-struct process *process_new() {
+struct process *process_seed() {
struct process *proc = page_alloc(1); // TODO kmalloc
proc->pages = pagedir_new();
proc->state = PS_RUNNING;
diff --git a/src/kernel/proc.h b/src/kernel/proc.h
index 6d1ed8c..f5b943a 100644
--- a/src/kernel/proc.h
+++ b/src/kernel/proc.h
@@ -18,7 +18,8 @@ struct process {
extern struct process *process_first;
extern struct process *process_current;
-struct process *process_new();
+// creates the root process
+struct process *process_seed();
struct process *process_clone(struct process *orig);
_Noreturn void process_switch(struct process *proc);