summaryrefslogtreecommitdiffstats
path: root/lib/libjove/include/arch/x86_64
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2025-08-19 16:16:10 -0400
committerJon Santmyer <jon@jonsantmyer.com>2025-08-19 16:16:10 -0400
commit18c389411a0f6283c1b6dffc78bbcfcb237e367b (patch)
treeb3f03adbfc4d7f3dd1477b078ac686eb9d42f0c3 /lib/libjove/include/arch/x86_64
parent858a52c06a4615bd58a6a906333f2ad707d41c0a (diff)
downloadjove-os-18c389411a0f6283c1b6dffc78bbcfcb237e367b.tar.gz
jove-os-18c389411a0f6283c1b6dffc78bbcfcb237e367b.tar.bz2
jove-os-18c389411a0f6283c1b6dffc78bbcfcb237e367b.zip
move pager to libjove
Diffstat (limited to 'lib/libjove/include/arch/x86_64')
-rw-r--r--lib/libjove/include/arch/x86_64/pager.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libjove/include/arch/x86_64/pager.h b/lib/libjove/include/arch/x86_64/pager.h
new file mode 100644
index 0000000..7e47ed1
--- /dev/null
+++ b/lib/libjove/include/arch/x86_64/pager.h
@@ -0,0 +1,12 @@
+#ifndef _LIBJOVE_ARCH_x86_64_PAGER_H
+#define _LIBJOVE_ARCH_x86_64_PAGER_H 1
+
+#include <jove/error.h>
+#include <jove/arch/x86_64/object-pagemap.h>
+
+extern KernelObjectPageMap __jove_pagemap;
+
+JoveError jove_pager_ensure_for(KernelObjectPageMap *map, uintptr_t vptr);
+#define jove_pager_ensure(vptr) jove_pager_ensure_for(&__jove_pagemap, vptr)
+
+#endif