diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-01-09 12:12:21 -0500 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-01-09 12:12:21 -0500 |
commit | 19a69c5f6249c8e2fdadd1217de75f6ba5496838 (patch) | |
tree | 62e59b8fdbc9309815790c2cc68312865d0e61ab /kernel/include/mm/physical_mm.h | |
parent | 2c2f6f78b8291b764dd5ac5027f08b4de0799d68 (diff) |
kernel: mm: physical: Move the memory map functions to another file
Diffstat (limited to 'kernel/include/mm/physical_mm.h')
-rw-r--r-- | kernel/include/mm/physical_mm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/include/mm/physical_mm.h b/kernel/include/mm/physical_mm.h index d90495b..6befcb0 100644 --- a/kernel/include/mm/physical_mm.h +++ b/kernel/include/mm/physical_mm.h @@ -19,6 +19,7 @@ #ifndef __mm_physical_mm_h #define __mm_physical_mm_h +#include <stdbool.h> #include <stdint.h> #include <common.h> @@ -38,4 +39,12 @@ uint32_t physical_mm_find_first_free_block(void); void *physical_mm_allocate_block(void); void physical_mm_free_block(void *physical_address); +void physical_mm_set_used(const uint32_t bit, + uint32_t *total_free_blocks, + uint32_t *memory_map); +void physical_mm_set_usable(const uint32_t bit, + uint32_t *total_free_blocks, + uint32_t *memory_map); +bool physical_mm_test_bit(const uint32_t bit, uint32_t *memory_map); + #endif |