Commit b5a1a46d authored by Christophe Leroy's avatar Christophe Leroy Committed by Greg Kroah-Hartman

powerpc/xmon: fix dump_segments()

[ Upstream commit 32c8c4c6 ]

mfsrin() takes segment num from bits 31-28 (IBM bits 0-3).
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
[mpe: Clarify bit numbering]
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d003b67d
......@@ -3493,7 +3493,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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment