mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
powerpc/xmon: fix dump_segments()
[ Upstream commit 32c8c4c621 ]
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
dbf29e9ba3
commit
52d915c2d4
@@ -3043,7 +3043,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
|
||||
|
||||
Reference in New Issue
Block a user