aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authormhorne <mhorne@FreeBSD.org>2020-12-21 16:16:09 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2021-01-08 18:53:44 +0000
commit5f66d5a313bf2b2254de92b2915e48e5cf528893 (patch)
treee6f8ed346e07a1d28821f192086775aa2474d037 /sbin
parente9bb4ce3d0e714d35b12ffdc7ecb56cade01f4a0 (diff)
downloadsrc-5f66d5a313bf2b2254de92b2915e48e5cf528893.tar.gz
src-5f66d5a313bf2b2254de92b2915e48e5cf528893.zip
arm64: remove pcb_pc
The program counter field in the PCB is written in exactly one place, makectx(), upon entry to the debugger. For threads other than curthread, its value will be empty, or bogus. Rather than writing to this field in more places, it can be removed in favor of using the value in the link register. To make this clearer, pcb->pcb_x[30] is renamed to pcb->pcb_lr, similar to what already exists in struct trapframe. Also, prefer lr to x30 in assembly, as it better conveys intention. This improves PC_REGS() for kdb_thread != curthread. It is required for a functional gdb(4) stub, fixing the output of `info threads`, in particular. The space occupied by pcb_pc is retained, for compatibility with kgdb. Reviewed by: markj, jhb MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D27720
Diffstat (limited to 'sbin')
0 files changed, 0 insertions, 0 deletions