freebsd-dev/sys/amd64
Andrew Turner 548a2ec49b Add PT_GETREGSET
This adds the PT_GETREGSET and PT_SETREGSET ptrace types. These can be
used to access all the registers from a specified core dump note type.
The NT_PRSTATUS and NT_FPREGSET notes are initially supported. Other
machine-dependant types are expected to be added in the future.

The ptrace addr points to a struct iovec pointing at memory to hold the
registers along with its length. On success the length in the iovec is
updated to tell userspace the actual length the kernel wrote or, if the
base address is NULL, the length the kernel would have written.

Because the data field is an int the arguments are backwards when
compared to the Linux PTRACE_GETREGSET call.

Reviewed by:	kib
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D19831
2022-01-27 11:40:34 +00:00
..
acpica amd64 wakeup: rework trampoline page allocation 2021-09-14 00:23:15 +03:00
amd64 Add PT_GETREGSET 2022-01-27 11:40:34 +00:00
conf lio: remove from NOIP 2022-01-05 14:19:34 -07:00
ia32 exec: Introduce the PROC_PS_STRINGS() macro 2022-01-17 16:11:54 -05:00
include Unstaticize {get,set}_fpcontext() on amd64 2022-01-04 13:25:12 +00:00
linux exec: Introduce the PROC_PS_STRINGS() macro 2022-01-17 16:11:54 -05:00
linux32 sysent: Add a sv_psstringssz field to struct sysentvec 2022-01-17 11:42:07 -05:00
pci pci_cfgreg.c: Use io port config access for early boot time. 2019-04-09 18:07:17 +00:00
sgx Convert remaining cap_rights_init users to cap_rights_init_one 2021-01-12 13:16:10 +00:00
vmm bhyve: add support for MTRR 2022-01-14 12:41:44 +01:00
Makefile Bring the tags and links entries for amd64 up to date. 2021-09-27 20:04:51 -07:00