freebsd-nq/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 Remove dead code and dead comments, most notably the implemenation of the 2016-01-10 18:00:01 +00:00
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 sys: use our roundup2/rounddown2() macros when param.h is available. 2016-04-21 19:57:40 +00:00
mmu_oea64.h New pmap implementation for 64-bit PowerPC processors. The main focus of 2015-02-24 21:37:20 +00:00
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 New pmap implementation for 64-bit PowerPC processors. The main focus of 2015-02-24 21:37:20 +00:00
moea64_native.c Make native page table access endian-safe. Even on CPUs running in 2015-11-17 16:09:26 +00:00
mp_cpudep.c Fix booting of 32-bit kernels on 64-bit G5 hardware. 2016-01-02 22:04:37 +00:00
slb.c As <machine/pmap.h> is included from <vm/pmap.h>, there is no need to 2016-02-22 09:02:20 +00:00
trap_subr32.S Make 32-bit PowerPC kernels, like 64-bit PowerPC kernels, position-independent 2015-03-07 20:14:46 +00:00
trap_subr64.S Remove dead code and dead comments, most notably the implemenation of the 2016-01-10 18:00:01 +00:00