diff options
author | Marvin Borner | 2021-03-21 14:31:08 +0100 |
---|---|---|
committer | Marvin Borner | 2021-03-21 14:31:08 +0100 |
commit | 3d0c30e6697b2b6ae77a03adefa2a8b81ebe4d92 (patch) | |
tree | aaa59a9fa43ddf50dafcc89bf979fb20de351941 /kernel/inc | |
parent | 09c3bdb186868204cb03d457244e05e12eb685d6 (diff) |
Cleaner shared memory implementation
Diffstat (limited to 'kernel/inc')
-rw-r--r-- | kernel/inc/mm.h | 5 | ||||
-rw-r--r-- | kernel/inc/proc.h | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/kernel/inc/mm.h b/kernel/inc/mm.h index 5e49aa7..ae4e962 100644 --- a/kernel/inc/mm.h +++ b/kernel/inc/mm.h @@ -117,8 +117,9 @@ u8 memory_is_user(u32 addr); u8 memory_valid(const void *addr); // User interface -res memory_shalloc(struct page_dir *dir, u32 size, u32 *id, u32 flags); -res memory_shaccess(struct page_dir *dir, u32 shid, u32 *addr, u32 *size); +res memory_sys_alloc(struct page_dir *dir, u32 size, u32 *addr, u32 *id, u8 shared); +res memory_sys_free(struct page_dir *dir, u32 addr); +res memory_sys_shaccess(struct page_dir *dir, u32 id, u32 *addr, u32 *size); void memory_install(struct mem_info *mem_info, struct vid_info *vid_info); diff --git a/kernel/inc/proc.h b/kernel/inc/proc.h index c946116..eb972d3 100644 --- a/kernel/inc/proc.h +++ b/kernel/inc/proc.h @@ -56,6 +56,7 @@ struct proc { struct proc_wait wait; // dev_id enum proc_state state; struct stack *messages; + struct list *memory; }; void scheduler(struct regs *regs); |