[PATCH] powerpc/xmon: fix dump_segments()

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE2790d

2 messages, 2 authors, 2018-12-22 · open the first message on its own page

[PATCH] powerpc/xmon: fix dump_segments()

From: Christophe Leroy <hidden>
Date: 2018-11-16 17:31:11

mfsrin() takes segment num from bits 0-3

Signed-off-by: Christophe Leroy <redacted>
---
 arch/powerpc/xmon/xmon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
index 36b8dc47a3c3..b2fe422ffffc 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -3502,7 +3502,7 @@ void dump_segments(void)
 
 	printf("sr0-15 =");
 	for (i = 0; i < 16; ++i)
-		printf(" %x", mfsrin(i));
+		printf(" %x", mfsrin(i << 28));
 	printf("\n");
 }
 #endif
-- 
2.13.3

Re: powerpc/xmon: fix dump_segments()

From: Michael Ellerman <hidden>
Date: 2018-12-22 17:02:26

On Fri, 2018-11-16 at 17:31:08 UTC, Christophe Leroy wrote:
mfsrin() takes segment num from bits 0-3

Signed-off-by: Christophe Leroy <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/32c8c4c621897199e690760c2d5705

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help