projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d003b67
)
powerpc/xmon: fix dump_segments()
author
Christophe Leroy
<christophe.leroy@c-s.fr>
Fri, 16 Nov 2018 17:31:08 +0000
(17:31 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:20:39 +0000
(09:20 +0100)
[ 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>
arch/powerpc/xmon/xmon.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/xmon/xmon.c
b/arch/powerpc/xmon/xmon.c
index
bb5db7b
..
f0fa22e
100644
(file)
--- a/
arch/powerpc/xmon/xmon.c
+++ b/
arch/powerpc/xmon/xmon.c
@@
-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