From f0248ad1724f9fbdd372db4da8ee8f956ae6aacd Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sun, 24 Aug 2025 16:05:30 -0400 Subject: libc heap impl --- lib/libjove/include/memory.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lib/libjove/include/memory.h (limited to 'lib/libjove/include/memory.h') 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 + +#ifdef __x86_64__ +#include +#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 -- cgit v1.2.1