freebsd-skq/sys
jhibbits 49cfe9a3ad powerpc64: Fix "show spr" command on ELFv2 kernels
Summary: When compiling for ELFv2, it is necessary to adjust the offset to
get_spr and factor in the function prologue to ensure the correct instruction is
being edited.

Test Plan:
Before:
```
db> show spr 110
KDB: reentering
KDB: stack backtrace:
0xc008000020fb96e0: at 0xc000000002bb2e34 = kdb_backtrace+0x68
0xc008000020fb97f0: at 0xc000000002bb3798 = kdb_reenter+0x54
0xc008000020fb9860: at 0xc000000002f87090 = trap+0x4e4
0xc008000020fb9990: at 0xc000000002f78a60 = powerpc_interrupt+0x110
0xc008000020fb9a20: kernel trap 0xe40 by 0xc000000002401978 = get_spr+0x8: srr1=0x9000000000001032
            r1=0xc008000020fb9cd0 cr=0x80009438 xer=0x20040000 ctr=0xc000000002f7b40c r2=0xc0000000037fd000
saved LR(0xfffffffffffffffb) is invalid.
```

After:

```
db> show spr 110
SPR 272(110): c000000003cae900
```

Submitted by:	git_bdragon.rtk0.net
Differential Revision: https://reviews.freebsd.org/D17813
2018-11-08 20:48:44 +00:00
..
amd64 amd64: align memset buffers to 16 bytes before using rep stos 2018-11-08 15:12:36 +00:00
arm Add a KPI for the delay while spinning on a spin lock. 2018-11-05 21:34:17 +00:00
arm64 Drop the legacy ELF brandinfo for the old rtld from arm64 and riscv. 2018-11-07 18:28:55 +00:00
bsm
cam Only assert locked for many async events. 2018-11-05 18:47:29 +00:00
cddl 9952 Block size change during zfs receive drops spill block 2018-11-03 03:10:06 +00:00
compat Regen after r340221: allow pointer return types. 2018-11-07 16:56:07 +00:00
conf Use --work-tree instead of specifying an absolute path. 2018-11-08 17:20:00 +00:00
contrib MFV: r339981 2018-11-02 22:50:13 +00:00
crypto rijndael (AES): Avoid leaking sensitive data on kernel stack 2018-10-26 20:53:01 +00:00
ddb ddb: Enable 'thread <address>' 2018-10-20 20:45:49 +00:00
dev ixl/iavf(4): Fix TSO offloads when TXCSUM is disabled 2018-11-08 19:10:43 +00:00
dts Revert r339421 due to unintended files included to commit. 2018-10-18 15:17:58 +00:00
fs Change nfs_advlock() so that the NFSVOPUNLOCK() is mostly done at the end. 2018-11-06 22:50:50 +00:00
gdb
geom Revert r340187, it breaks EOD (end-of-device) detection logic. Turns out, 2018-11-07 16:28:09 +00:00
gnu dts: Import DTS for arm64 2018-08-23 13:21:01 +00:00
i386 Add a custom implementation of cpu_lock_delay() for x86. 2018-11-05 22:54:03 +00:00
isa Reapply, with minor tweaks, r338025, from the original commit: 2018-09-26 17:12:14 +00:00
kern Enable non-executable stacks by default on RISC-V. 2018-11-07 18:32:02 +00:00
kgssapi
libkern mcount: tidy up ANSIfication 2018-10-20 22:39:35 +00:00
mips Add a KPI for the delay while spinning on a spin lock. 2018-11-05 21:34:17 +00:00
modules Retire CLANG_NO_IAS34 2018-11-01 23:11:47 +00:00
net Fix rxcsum issue introduced in r338838 2018-11-07 19:31:48 +00:00
net80211 Fix misspellings of transmitter/transmitted 2018-08-10 20:37:32 +00:00
netgraph Make ng_pptpgre(8) netgraph node be able to restore order for packets 2018-11-04 19:10:44 +00:00
netinet Avoid buffer underwrite in icmp_error 2018-11-08 20:17:36 +00:00
netinet6 in6_ifattach_linklocal: handle immediate removal of the new LLA 2018-11-08 19:50:23 +00:00
netipsec Add sadb_x_sa2 extension to SADB_ACQUIRE requests. 2018-10-21 14:19:16 +00:00
netpfil pf: Fix build if INVARIANTS is not set 2018-11-02 19:23:50 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm Use syscall_helper_register() to register syscalls and initialize though 2018-02-10 01:09:22 +00:00
ofed Introduce and use sgid_index in CM requests in ibcore. 2018-09-09 07:20:15 +00:00
opencrypto Add sha224 to the authctx union. 2018-10-23 18:07:37 +00:00
powerpc powerpc64: Fix "show spr" command on ELFv2 kernels 2018-11-08 20:48:44 +00:00
riscv Drop the legacy ELF brandinfo for the old rtld from arm64 and riscv. 2018-11-07 18:28:55 +00:00
rpc
security Add const to input-only char * arguments. 2018-11-02 20:50:22 +00:00
sparc64 Add a KPI for the delay while spinning on a spin lock. 2018-11-05 21:34:17 +00:00
sys Handle the DT_MIPS_RLD_MAP_REL dynamic tag in RTLD 2018-11-07 15:04:41 +00:00
teken Implement ECMA-48 "REP", some Linuxen have started emitting them recently. 2018-10-21 08:29:36 +00:00
tests epoch_test: fix compile 2018-07-15 00:31:17 +00:00
tools embed_mfs.sh: replace some compound statements with conventional ifs 2018-11-02 21:07:06 +00:00
ufs Make vop_symlink take a const target path. 2018-11-02 14:42:36 +00:00
vm Fix a use-after-free in swp_pager_meta_free(). 2018-11-07 23:28:11 +00:00
x86 Add a custom implementation of cpu_lock_delay() for x86. 2018-11-05 22:54:03 +00:00
xdr
xen xen: legacy PVH fixes for the new interrupt count 2018-09-13 07:14:11 +00:00
Makefile