freebsd-skq/sys
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
..
amd64 The pmap_delayed_invl_wait() function blocks on turnstile, it does not 2016-08-11 12:37:11 +00:00
arm sys: replace comma with semicolon when pertinent. 2016-08-09 19:42:20 +00:00
arm64 Implement promotions and demotions in the arm64 pmap code. For now we don't 2016-08-12 10:29:34 +00:00
boot Add defines needed to export SMBIOS serial numbers 2016-08-12 19:47:20 +00:00
bsm
cam cam/da: Add quirk for I-O Data USB Flash Disk 2016-08-11 03:12:56 +00:00
cddl fix a zfs cross-device rename crash introduced in r303763 2016-08-09 06:11:24 +00:00
compat Provide the CloudABI vDSO to its executables. 2016-08-10 21:02:41 +00:00
conf Add ipfw_nat64 module that implements stateless and stateful NAT64. 2016-08-13 16:09:49 +00:00
contrib Consistently use device_t 2016-08-09 19:32:06 +00:00
crypto
ddb Fix ddb "show proc" to show full arguments 2016-08-01 22:41:50 +00:00
dev Avoid taking PROC_LOCK in syscalls if not being traced. 2016-08-12 16:05:53 +00:00
fs Update the nfsstats structure to include the changes needed by 2016-08-12 22:44:59 +00:00
gdb
geom Do not invoke resize event if initial disk size is zero. Some disks 2016-08-01 20:54:54 +00:00
gnu
i386 Unconditionally perform checks that FPU region was entered, when #NM 2016-08-10 13:44:03 +00:00
isa
kern Eliminate two calls to vm_page_xunbusy() that are both unnecessary and 2016-08-13 18:10:32 +00:00
kgssapi
libkern
mips Consistently use device_t 2016-08-09 19:32:06 +00:00
modules Add ipfw_nat64 module that implements stateless and stateful NAT64. 2016-08-13 16:09:49 +00:00
net Update iflib to support more NIC designs 2016-08-12 21:29:44 +00:00
net80211 sys: replace comma with semicolon when pertinent. 2016-08-09 19:42:20 +00:00
netgraph Avoid panic from ng_uncallout when unpluggin ethernet cable with active 2016-08-08 19:31:01 +00:00
netinet Add stats reset command implementation to NPTv6 module 2016-08-13 16:45:14 +00:00
netinet6 Add ipfw_nat64 module that implements stateless and stateful NAT64. 2016-08-13 16:09:49 +00:00
netipsec Get closer to a VIMAGE network stack teardown from top to bottom rather 2016-06-21 13:48:49 +00:00
netnatm
netpfil Add stats reset command implementation to NPTv6 module 2016-08-13 16:45:14 +00:00
netsmb
nfs Hide the boottime and bootimebin globals, provide the getboottime(9) 2016-07-27 11:08:59 +00:00
nfsclient
nfsserver
nlm When sleeping waiting for either local or remote advisory lock, 2016-06-26 20:08:42 +00:00
ofed mthca: Add a wrapper for the firmware's DIAG_RPRT command. 2016-08-05 21:34:09 +00:00
opencrypto opencrypto AES-ICM: Fix heap corruption typo 2016-08-01 22:57:03 +00:00
pc98
powerpc Add a kdb show command to print arbitrary SPRs on PowerPC 2016-08-13 18:46:49 +00:00
riscv o Remove operation in machine mode. 2016-08-10 12:41:36 +00:00
rpc Hide the boottime and bootimebin globals, provide the getboottime(9) 2016-07-27 11:08:59 +00:00
security Add AUE_WAIT6 handling to the BSM conversion switch statement, reusing 2016-07-11 13:06:17 +00:00
sparc64 sys: replace comma with semicolon when pertinent. 2016-08-09 19:42:20 +00:00
sys Update iflib to support more NIC designs 2016-08-12 21:29:44 +00:00
teken
tests
tools Consider CROSS_BINUTILS_PREFIX environment variable so we use correct 2016-08-10 13:49:17 +00:00
ufs Replace all remaining calls to vprint(9) with vn_printf(9), and remove 2016-08-10 16:12:31 +00:00
vm Correct errors and clean up the comments on the active queue scan. 2016-08-12 03:22:58 +00:00
x86 sys: replace comma with semicolon when pertinent. 2016-08-09 19:42:20 +00:00
xdr
xen
Makefile