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
  2025-09-03  6:22 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages 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] 2+ messages in thread

* Re: [PATCH] ARM: mmu: fix <unknown> mapping print
  2025-08-29 13:11 [PATCH] ARM: mmu: fix <unknown> mapping print Sascha Hauer
@ 2025-09-03  6:22 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2025-09-03  6:22 UTC (permalink / raw)
  To: Barebox List, Sascha Hauer


On Fri, 29 Aug 2025 15:11:42 +0200, Sascha Hauer wrote:
> Mask out the ARCH_MAP_FLAG_PAGEWISE bit in map_type_tostr(). Otherwise
> mapping types with this bit set end up being <unknown>.
> 
> 

Applied, thanks!

[1/1] ARM: mmu: fix <unknown> mapping print
      https://git.pengutronix.de/cgit/barebox/commit/?id=258c624a4e24 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-09-03  6:24 UTC | newest]

Thread overview: 2+ messages (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
2025-09-03  6:22 ` Sascha Hauer

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