diff options
author | Marvin Borner | 2020-06-01 23:30:40 +0200 |
---|---|---|
committer | Marvin Borner | 2020-06-01 23:30:40 +0200 |
commit | 0b3b63ffdedb2e37e0732c09eb0e967e256f0d71 (patch) | |
tree | f92a97a59e15d699b2594d3d313214f241ae8565 /src/kernel/memory/mmap.h | |
parent | 5782d6b0c10b322d78c5d1284cbd4199d2e0f7ce (diff) |
Very clean mmap approach
Sorry for the previous commit messages, I was kind of frustrated.
Diffstat (limited to 'src/kernel/memory/mmap.h')
-rw-r--r-- | src/kernel/memory/mmap.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/kernel/memory/mmap.h b/src/kernel/memory/mmap.h new file mode 100644 index 0000000..1de801f --- /dev/null +++ b/src/kernel/memory/mmap.h @@ -0,0 +1,18 @@ +#ifndef MELVIX_MMAP +#define MELVIX_MMAP + +#include <stdint.h> + +void *kmalloc_frames(u32 num); +void kfree_frames(void *ptr, u32 num); + +u8 mmap_check(u32 n); +void mmap_init(u32 size); +void mmap_init_finalize(); +void mmap_address_set_free(u32 address); +void mmap_address_set_used(u32 address); +u8 mmap_index_check(u32 n); +void mmap_index_set_free(u32 n); +void mmap_index_set_used(u32 n); + +#endif
\ No newline at end of file |