aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc/mm.h
diff options
context:
space:
mode:
authorMarvin Borner2021-04-03 18:33:26 +0200
committerMarvin Borner2021-04-03 18:33:26 +0200
commit0162d9cafc2c9b14fe6f319d1fbca74b26bd0b3d (patch)
treeba7bf845e3e4721e5f1645a8c5a261b68ad3d89d /kernel/inc/mm.h
parentbd1ad65704d44e3e06a587a890e8087bfd9abe3b (diff)
Added readonly remap of readonly elf sections
Diffstat (limited to 'kernel/inc/mm.h')
-rw-r--r--kernel/inc/mm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/inc/mm.h b/kernel/inc/mm.h
index 7226adb..b7032c8 100644
--- a/kernel/inc/mm.h
+++ b/kernel/inc/mm.h
@@ -85,6 +85,7 @@ struct page_dir {
u8 virtual_present(struct page_dir *dir, u32 vaddr) NONNULL;
u32 virtual_to_physical(struct page_dir *dir, u32 vaddr) NONNULL;
void virtual_map(struct page_dir *dir, struct memory_range prange, u32 vaddr, u32 flags) NONNULL;
+void virtual_remap_readonly(struct page_dir *dir, struct memory_range vrange);
struct memory_range virtual_alloc(struct page_dir *dir, struct memory_range physical_range,
u32 flags) NONNULL;
void virtual_free(struct page_dir *dir, struct memory_range vrange) NONNULL;