From: Christophe Leroy Date: Fri, 16 Nov 2018 17:31:08 +0000 (+0000) Subject: powerpc/xmon: fix dump_segments() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=32c8c4c621897199e690760c2d57054f8b84b6e6;p=openwrt%2Fstaging%2Fblogic.git powerpc/xmon: fix dump_segments() mfsrin() takes segment num from bits 31-28 (IBM bits 0-3). Signed-off-by: Christophe Leroy [mpe: Clarify bit numbering] Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index 372f4d80bcd6..757b8499aba2 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -3504,7 +3504,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