freebsd-nq/sys/powerpc
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 Add a kdb show command to print arbitrary SPRs on PowerPC 2016-08-13 18:46:49 +00:00
booke Add a kdb show command to print arbitrary SPRs on PowerPC 2016-08-13 18:46:49 +00:00
conf Merge MPC85XX and QorIQ config options 2016-08-03 01:22:11 +00:00
cpufreq Some style(9) fixes 2013-12-13 05:54:25 +00:00
fpu Fix build of powerpc FPU emulator after changes in r295132 to restore the 2016-02-04 17:43:56 +00:00
include Revert r303890 for now here as camdd fails to build on powerpc* 2016-08-11 15:06:12 +00:00
mambo CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than ten 2015-05-22 17:05:21 +00:00
mikrotik Create a RouterBoard platform and use it to create a flash map 2015-08-22 05:50:18 +00:00
mpc85xx Add ePAPR boot support for PowerPC book-E (MPC85xx) hardware 2016-08-13 16:16:02 +00:00
ofw Remove dead code. This should have been removed in r297392, when these 2016-07-11 17:02:17 +00:00
powermac Fix the deciKelvin to Celsius conversion in kernel. 2016-05-22 13:58:32 +00:00
powerpc Add a kdb show command to print arbitrary SPRs on PowerPC 2016-08-13 18:46:49 +00:00
ps3 Fix the resource_list_print_type() calls to use uintmax_t. 2016-03-22 22:25:08 +00:00
pseries Use our nitems() macro when param.h is available. 2016-04-20 15:45:55 +00:00
psim Use OF_prop_free instead of direct call to free(9) 2016-05-14 20:06:38 +00:00