diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2025-08-24 16:05:30 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2025-08-24 16:05:30 -0400 |
commit | f0248ad1724f9fbdd372db4da8ee8f956ae6aacd (patch) | |
tree | 4d661f264a64c562b56a801d3b6a5373415e42d4 /lib/libjove/include/memory.h | |
parent | 18c389411a0f6283c1b6dffc78bbcfcb237e367b (diff) | |
download | jove-os-f0248ad1724f9fbdd372db4da8ee8f956ae6aacd.tar.gz jove-os-f0248ad1724f9fbdd372db4da8ee8f956ae6aacd.tar.bz2 jove-os-f0248ad1724f9fbdd372db4da8ee8f956ae6aacd.zip |
libc heap impl
Diffstat (limited to 'lib/libjove/include/memory.h')
-rw-r--r-- | lib/libjove/include/memory.h | 15 |
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 |