aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc
diff options
context:
space:
mode:
authorMarvin Borner2021-03-21 00:13:13 +0100
committerMarvin Borner2021-03-21 00:13:13 +0100
commit68a0ad7f21ba07b93cd63613996e27afd8780f9c (patch)
tree1fb7ff055743737ab5903d81507ea4732e45e095 /kernel/inc
parent535018ae7247ede06606e4d8aced2d12c761f28f (diff)
Added basic shared memory support
This will be improved soon. It's very insecure right now.
Diffstat (limited to 'kernel/inc')
-rw-r--r--kernel/inc/mm.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/inc/mm.h b/kernel/inc/mm.h
index e506331..5e30be6 100644
--- a/kernel/inc/mm.h
+++ b/kernel/inc/mm.h
@@ -104,8 +104,10 @@ struct memory_range memory_range_around(u32 base, u32 size);
void *memory_alloc(struct page_dir *dir, u32 size, u32 flags);
void *memory_alloc_identity(struct page_dir *dir, u32 flags);
-void memory_map_identity(struct page_dir *dir, struct memory_range prange, u32 flags);
+u32 memory_shalloc(struct page_dir *dir, u32 size, u32 flags);
+void *memory_shaccess(struct page_dir *dir, u32 shid);
void memory_free(struct page_dir *dir, struct memory_range vrange);
+void memory_map_identity(struct page_dir *dir, struct memory_range prange, u32 flags);
void memory_switch_dir(struct page_dir *dir);
void memory_backup_dir(struct page_dir **backup);