Mask out the ARCH_MAP_FLAG_PAGEWISE bit in map_type_tostr(). Otherwise
mapping types with this bit set end up being <unknown>.

Signed-off-by: Sascha Hauer <[email protected]>
---
 arch/arm/cpu/mmu-common.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/cpu/mmu-common.c b/arch/arm/cpu/mmu-common.c
index 46982b00b7..033ba01ea4 100644
--- a/arch/arm/cpu/mmu-common.c
+++ b/arch/arm/cpu/mmu-common.c
@@ -18,6 +18,8 @@
 
 const char *map_type_tostr(maptype_t map_type)
 {
+       map_type &= ~ARCH_MAP_FLAG_PAGEWISE;
+
        switch (map_type) {
        case ARCH_MAP_CACHED_RWX:       return "RWX";
        case ARCH_MAP_CACHED_RO:        return "RO";
-- 
2.47.2


Reply via email to