diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2018-11-16 20:31:08 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-05 17:37:36 +0300 |
commit | f871fc2e6ad9a83f30343a7ebfee2130cad4c496 (patch) | |
tree | 861621bfde3de8e9ee435f5798567ff4e84ff1fd /arch/powerpc/xmon | |
parent | 2585fe4893a0c4c18f0727a8185c5281c8a7c59e (diff) | |
download | linux-f871fc2e6ad9a83f30343a7ebfee2130cad4c496.tar.xz |
powerpc/xmon: fix dump_segments()
[ Upstream commit 32c8c4c621897199e690760c2d57054f8b84b6e6 ]
mfsrin() takes segment num from bits 31-28 (IBM bits 0-3).
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
[mpe: Clarify bit numbering]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/powerpc/xmon')
-rw-r--r-- | arch/powerpc/xmon/xmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index 5a739588aa50..51a53fd51722 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -3293,7 +3293,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 |