powerpc/xmon: fix dump_segments()
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>
This commit is contained in:
parent
0ed5b55884
commit
32c8c4c621
|
@ -3504,7 +3504,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
|
||||
|
|
Loading…
Reference in New Issue