From 22447c9736dddcf2205563193c5fee752fefbee2 Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Mon, 4 Dec 2023 16:22:31 -0800 Subject: [PATCH] kernel: mmu: fix typo K_DIRECT_MAP to K_MEM_DIRECT_MAP Fix typo in comment to reflect the actual macro named K_MEM_DIRECT_MAP. Signed-off-by: Daniel Leung --- kernel/mmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/mmu.c b/kernel/mmu.c index f3133926a42..eb1d95ec684 100644 --- a/kernel/mmu.c +++ b/kernel/mmu.c @@ -242,7 +242,7 @@ static void virt_region_free(void *vaddr, size_t size) } #ifndef CONFIG_KERNEL_DIRECT_MAP - /* Without the need to support K_DIRECT_MAP, the region must be + /* Without the need to support K_MEM_DIRECT_MAP, the region must be * able to be represented in the bitmap. So this case is * simple. */ @@ -259,7 +259,7 @@ static void virt_region_free(void *vaddr, size_t size) num_bits = size / CONFIG_MMU_PAGE_SIZE; (void)sys_bitarray_free(&virt_region_bitmap, num_bits, offset); #else /* !CONFIG_KERNEL_DIRECT_MAP */ - /* With K_DIRECT_MAP, the region can be outside of the virtual + /* With K_MEM_DIRECT_MAP, the region can be outside of the virtual * memory space, wholly within it, or overlap partially. * So additional processing is needed to make sure we only * mark the pages within the bitmap.