aboutsummaryrefslogtreecommitdiff
path: root/kernel/mm/physical_mm/physical_mm.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/mm/physical_mm/physical_mm.c')
-rw-r--r--kernel/mm/physical_mm/physical_mm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/mm/physical_mm/physical_mm.c b/kernel/mm/physical_mm/physical_mm.c
index 5b405e6..ed89316 100644
--- a/kernel/mm/physical_mm/physical_mm.c
+++ b/kernel/mm/physical_mm/physical_mm.c
@@ -140,7 +140,7 @@ physical_mm_init(void)
}
uint32_t
-physical_mm_find_first_free_block(void)
+physical_mm_find_free_block(void)
{
/* TODO: Why doesn't using block_count instead of MAX_BLOCKS work? */
for (uint32_t i = 0; i < MAX_BLOCKS / BITMAP_ENTRY_SIZE; i++)
@@ -167,7 +167,7 @@ physical_mm_allocate_block(void)
spinlock_acquire(&memory_map_lock);
- uint32_t block = physical_mm_find_first_free_block();
+ uint32_t block = physical_mm_find_free_block();
physical_mm_set_used(block, &total_free_blocks, memory_map);
spinlock_release(&memory_map_lock);