freebsd-dev/sys/powerpc/aim
Justin Hibbits cbc3c68d9a Add a kdb show command to print arbitrary SPRs on PowerPC
Summary:
There is often a need at the debugger to print arbitrary special
purpose registers (SPRs) on PowerPC.  Using a rewritable asm stub, print any SPR
provided on the command line.

Note, as there is no checking in this, attempting to print a nonexistent SPR
may cause a Program exception (illegal instruction, or boundedly undefined).

Note also that this relies on the kernel text pages being writable.  If in the
future this is made not the case, this will need to be reworked.

Test Plan:
Printing the Processor Version Register (PVR, SPR 287):

db> show spr 11f
SPR 287(11f): 80240012

Differential Revision: https://reviews.freebsd.org/D7403
2016-08-13 18:46:49 +00:00
..
aim_machdep.c Enter 64-bit mode as early as possible in the 64-bit PowerPC boot sequence. 2016-06-26 18:43:42 +00:00
locore32.S
locore64.S Enter 64-bit mode as early as possible in the 64-bit PowerPC boot sequence. 2016-06-26 18:43:42 +00:00
locore.S Add a kdb show command to print arbitrary SPRs on PowerPC 2016-08-13 18:46:49 +00:00
mmu_oea64.c
mmu_oea64.h
mmu_oea.c Do not rely on firmware having pre-enabled the MMU in a reasonable way for 2016-06-29 14:40:43 +00:00
moea64_if.m
moea64_native.c
mp_cpudep.c
slb.c
trap_subr32.S
trap_subr64.S