freebsd-dev/sys/powerpc
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
..
aim powerpc/aim: ifdef DDB pmap debugging functions 2022-01-07 08:56:57 -07:00
amigaone powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
booke sched: separate out schedinit_ap() 2021-11-03 15:54:59 -05:00
conf powerpc: enable ice in GENERIC64LE 2022-01-21 02:17:46 +01:00
cpufreq powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
fpu Create sys/reg.h for the common code previously in machine/reg.h 2021-08-30 12:50:53 +01:00
include powerpc: Fix syntax atomic.h 2022-01-14 19:11:22 +08:00
mambo Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00
mikrotik powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
mpc85xx Rename ofwpci.c to ofw_pcib.c 2021-05-20 11:22:25 +02:00
ofw Make CPU_SET macros compliant with other implementations 2021-12-30 12:20:32 +01:00
powermac [PowerPC] PowerMac timebase sync for G4 2021-12-23 16:06:07 -06:00
powernv newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
powerpc Add PT_GETREGSET 2022-01-27 11:40:34 +00:00
ps3 vt: export RGB offsets with FBIO_GETRGBOFFS 2021-11-25 16:39:25 -03:00
pseries powerpc/pseries: Allow radix pmap in pseries for ISA 3.0 2021-08-11 19:07:04 -05:00
psim powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00