summaryrefslogtreecommitdiffstats
path: root/mem
diff options
context:
space:
mode:
Diffstat (limited to 'mem')
-rw-r--r--mem/buddymap.d2
-rw-r--r--mem/memory.h9
-rw-r--r--mem/phys.d1
-rw-r--r--mem/slab.d2
4 files changed, 9 insertions, 5 deletions
diff --git a/mem/buddymap.d b/mem/buddymap.d
deleted file mode 100644
index 7132cfe..0000000
--- a/mem/buddymap.d
+++ /dev/null
@@ -1,2 +0,0 @@
-mem/buddymap.o: mem/buddymap.c mem/buddymap.h mem/memory.h mem/slab.h \
- lib/string.h boot/boot.h io/log.h
diff --git a/mem/memory.h b/mem/memory.h
index eb30217..3956852 100644
--- a/mem/memory.h
+++ b/mem/memory.h
@@ -32,6 +32,15 @@ bool mem_check_ptr(const void *ptr);
* @param user flag to mark page as user accessable*/
void mem_ensure_range(uintptr_t from, uintptr_t to, bool rw, bool user);
+/**Make sure the range indicated is available in memory for specified pd
+ * If necessary, allocate new pages using the passed flags
+ * @param pd pointer to page directory to edit
+ * @param from start of the range.
+ * @param to end of the range.
+ * @param rw flag to mark page is writeable.
+ * @param user flag to mark page as user accessable*/
+void mem_ensure_range_for(void *pd, uintptr_t from, uintptr_t to, bool rw, bool user);
+
void mem_slab_setup(void);
void mem_slabcache_new(struct SlabCache *cache, char *name, size_t objsize);
diff --git a/mem/phys.d b/mem/phys.d
deleted file mode 100644
index 192b714..0000000
--- a/mem/phys.d
+++ /dev/null
@@ -1 +0,0 @@
-mem/phys.o: mem/phys.c mem/memory.h mem/slab.h mem/buddymap.h
diff --git a/mem/slab.d b/mem/slab.d
deleted file mode 100644
index 5cffd4c..0000000
--- a/mem/slab.d
+++ /dev/null
@@ -1,2 +0,0 @@
-mem/slab.o: mem/slab.c mem/slab.h mem/memory.h lib/format.h lib/string.h \
- lib/jove.h io/log.h