freebsd-dev/sys/powerpc
Justin Hibbits 8f04c0c06b 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
..
aim powerpc64/pmap: Correct the logic for minidump KVA chunk 2018-10-21 02:28:04 +00:00
booke powerpc/booke: Turn tlb*_print_tlbentries() into 'show tlb*' DDB commands 2018-10-22 00:21:27 +00:00
conf Compile in VERBOSE_SYSINIT support by default, remain silent by default 2018-10-31 22:38:19 +00:00
cpufreq Fix the build post-PMCR addition. 2018-06-21 15:59:05 +00:00
fpu sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
include powerpc/atomic: Loosen the memory barrier on atomic_load_acq_*() 2018-11-07 01:42:00 +00:00
mambo sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
mikrotik - Allow different slicers for different flash types to be registered 2017-02-22 10:21:39 +00:00
mpc85xx powerpc/mpc85xx: Reset the PCIe bus on attach 2018-10-30 00:47:40 +00:00
ofw powerpc: Blacklist the top 64kB range of the lower 4GB PA space 2018-09-25 02:34:28 +00:00
powermac Bump the number of fans supported from 8 to 12. 2018-10-30 11:51:09 +00:00
powernv powerpc/powernv: Restrict the busdma tag to only POWER8 2018-11-08 20:31:12 +00:00
powerpc powerpc64: Fix "show spr" command on ELFv2 kernels 2018-11-08 20:48:44 +00:00
ps3 ifnet: Replace if_addr_lock rwlock with epoch + mutex 2018-05-18 20:13:34 +00:00
pseries powerpc64/xics: Fix comment typo 2018-10-21 02:25:56 +00:00
psim add snps IP uart support / genaralize UART 2018-08-19 21:10:21 +00:00