Commit 01ce4908 authored by Christophe Leroy's avatar Christophe Leroy Committed by Kleber Sacilotto de Souza

powerpc/xmon: fix dump_segments()

BugLink: https://bugs.launchpad.net/bugs/1855313

[ 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>
Signed-off-by: default avatarConnor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent dcafeb8e
...@@ -2900,7 +2900,7 @@ void dump_segments(void) ...@@ -2900,7 +2900,7 @@ void dump_segments(void)
printf("sr0-15 ="); printf("sr0-15 =");
for (i = 0; i < 16; ++i) for (i = 0; i < 16; ++i)
printf(" %x", mfsrin(i)); printf(" %x", mfsrin(i << 28));
printf("\n"); printf("\n");
} }
#endif #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