summaryrefslogtreecommitdiffstats
path: root/lib/libjove/include/memory.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libjove/include/memory.h')
-rw-r--r--lib/libjove/include/memory.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/libjove/include/memory.h b/lib/libjove/include/memory.h
new file mode 100644
index 0000000..9d4ce1d
--- /dev/null
+++ b/lib/libjove/include/memory.h
@@ -0,0 +1,15 @@
+#ifndef _LIBJOVE_MEMORY_H
+#define _LIBJOVE_MEMORY_H 1
+
+#include <jove/error.h>
+
+#ifdef __x86_64__
+#include <jove/arch/x86_64/pager.h>
+#define jove_mem_ensure(vptr) jove_pager_ensure(vptr)
+#define jove_mem_exists(vptr) jove_pager_exists(vptr)
+#endif
+
+JoveError jove_mem_ensure_range(uintptr_t start, uintptr_t end);
+JoveError jove_mem_ensure_w(uintptr_t start, size_t pages);
+
+#endif