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 <daniel.leung@intel.com>
This commit is contained in:
parent
0a3fe40505
commit
22447c9736
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user