mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: mmu: fix <unknown> mapping print
@ 2025-08-29 13:11 Sascha Hauer
  0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2025-08-29 13:11 UTC (permalink / raw)
  To: Barebox List

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 <s.hauer@pengutronix.de>
---
 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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-08-29 16:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-29 13:11 [PATCH] ARM: mmu: fix <unknown> mapping print Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox