summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
diff options
context:
space:
mode:
authordzwdz2021-07-20 21:38:09 +0200
committerdzwdz2021-07-20 21:38:09 +0200
commit9ad0eafcf7e2f3e0532666c5353b0f5294401b06 (patch)
tree2e17da4c1953b6f24fb9a9a6c533a62d3f6c4d4c /src/kernel/proc.h
parent061363a38eff486c809d397e69ae4fe290db95d2 (diff)
per-process virtual memory
VGA is only mapped into the virtual memory because there are no other ways of interacting with the OS.
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r--src/kernel/proc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/kernel/proc.h b/src/kernel/proc.h
index 976b275..745db8d 100644
--- a/src/kernel/proc.h
+++ b/src/kernel/proc.h
@@ -1,13 +1,15 @@
#pragma once
+#include <kernel/arch/generic.h>
struct process {
void *stack_top;
void *esp;
-
void *eip;
+
+ struct pagedir *pages;
};
extern struct process *process_current;
-struct process *process_new(void *eip);
+struct process *process_new();
void process_switch(struct process *proc);