Skip to content

Commit 46fb82a

Browse files
arnopoHardevsinh-Palaniya
authored andcommitted
arch: arm: mmu: allow to select the K_MEM_ARM_NORMAL_NC memory type
Allow to configure the MMU for non-cacheable normal memories. This mode is needed for instance by net samples to access to to non word-aligned memory. Signed-off-by: Arnaud Pouliquen <[email protected]>
1 parent d33f4b7 commit 46fb82a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/arm/core/mmu/arm_mmu.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,9 @@ static int __arch_mem_map(void *virt, uintptr_t phys, size_t size, uint32_t flag
890890

891891
switch (flags & K_MEM_CACHE_MASK) {
892892

893+
case K_MEM_ARM_NORMAL_NC:
894+
conv_flags |= MT_NORMAL;
895+
break;
893896
case K_MEM_CACHE_NONE:
894897
default:
895898
conv_flags |= MT_DEVICE;

0 commit comments

Comments
 (0)