Nucleus
Barry Kernel threads + threads share address space 6217f0d (3 years, 1 month ago)
diff --git a/memory/namespace.h b/memory/namespace.h
index bd5b0a1..b0f3528 100644
--- a/memory/namespace.h
+++ b/memory/namespace.h
@@ -1,7 +1,9 @@
#ifndef MEMORY_NAMESPACE_H
#define MEMORY_NAMESPACE_H
+#include <nucleus/memory.h>
#include <nucleus/object.h>
+#include <nucleus/types.h>
#include <nucleus/vfs.h>
/* Structure for a Page in a Cache */
@@ -15,6 +17,8 @@ struct Page {
struct VirtualMemory {
Object obj;
ObjectList *regions;
+ VMRegion *stack;
+ page_dir_t pageDir;
};
/* Structure for a Virtual Memory Region object */
@@ -27,6 +31,7 @@ struct VMRegion {
File *front, *back;
};
+void switch_dir(page_dir_t dir);
VMRegion *vm_create_region(void *addr, size_t len, int prot, int flags,
off_t offset, File *back);