From 9ad0eafcf7e2f3e0532666c5353b0f5294401b06 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 20 Jul 2021 21:38:09 +0200 Subject: per-process virtual memory VGA is only mapped into the virtual memory because there are no other ways of interacting with the OS. --- src/kernel/proc.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/kernel/proc.h') 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 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); -- cgit v1.2.3