diff options
Diffstat (limited to 'mem/memory.h')
-rw-r--r-- | mem/memory.h | 9 |
1 files changed, 9 insertions, 0 deletions
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); |