Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52d915c2 authored by Christophe Leroy's avatar Christophe Leroy Committed by Greg Kroah-Hartman
Browse files

powerpc/xmon: fix dump_segments()



[ Upstream commit 32c8c4c621897199e690760c2d57054f8b84b6e6 ]

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 dbf29e9b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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