opnsense-src/sys/mips/mips
Andrew Turner 658631a37d 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

(cherry picked from commit 548a2ec49b)
2022-05-12 15:12:59 -07:00
..
autoconf.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
bcopy.S Make memmove an alias for memcpy 2018-05-24 21:11:24 +00:00
bus_space_generic.c Remove support for the now very old SiByte MIPS platform. It's not 2018-12-19 22:54:03 +00:00
busdma_machdep.c Simplify swi for bus_dma. 2022-04-29 14:27:47 -07:00
cache.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
cache_mipsNN.c mips: clean up empty lines in .c and .h files 2020-09-01 21:21:19 +00:00
cpu.c mips: clean up empty lines in .c and .h files 2020-09-01 21:21:19 +00:00
db_disasm.c spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
db_interface.c mips: clean up empty lines in .c and .h files 2020-09-01 21:21:19 +00:00
db_trace.c ddb: replace watchpoint set/clear functions 2021-04-21 10:20:33 -03:00
dump_machdep.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
elf_machdep.c Add PT_GETREGSET 2022-05-12 15:12:59 -07:00
elf_trampoline.c mips: Fix a typo in a source code comment 2021-12-03 16:53:27 +01:00
exception.S MFC: mips: fix early kernel panic when setting up interrupt counters 2021-02-02 21:06:37 -08:00
fp.S Rename assym.s to assym.inc 2018-03-20 17:58:51 +00:00
freebsd32_machdep.c Add PT_GETREGSET 2022-05-12 15:12:59 -07:00
gdb_machdep.c Create sys/reg.h for the common code previously in machine/reg.h 2022-05-12 15:12:59 -07:00
genassym.c Various fixes to TLS for MIPS. 2020-06-12 21:21:18 +00:00
inckern.S
intr_machdep.c MFC: mips: fix early kernel panic when setting up interrupt counters 2021-02-02 21:06:37 -08:00
libkern_machdep.c sys/mips: further adoption of SPDX licensing ID tags. 2017-11-27 15:07:26 +00:00
locore.S Rename assym.s to assym.inc 2018-03-20 17:58:51 +00:00
machdep.c Create sys/reg.h for the common code previously in machine/reg.h 2022-05-12 15:12:59 -07:00
mem.c Add the MEM_EXTRACT_PADDR ioctl to /dev/mem. 2020-09-02 18:12:47 +00:00
minidump_machdep.c Allow minidumps to be performed on the live system 2021-12-03 10:02:03 -04:00
mips_pic.c mips: clean up empty lines in .c and .h files 2020-09-01 21:21:19 +00:00
mp_machdep.c sched: separate out schedinit_ap() 2022-02-10 14:55:29 -06:00
mpboot.S Rename assym.s to assym.inc 2018-03-20 17:58:51 +00:00
nexus.c make maximum interrupt number tunable on ARM, ARM64, MIPS, and RISC-V 2021-01-18 16:36:39 -08:00
octeon_cop2.c Fix UMA alignment for COP2 context structure. 2020-11-04 23:29:27 +00:00
octeon_cop2_swtch.S Rename assym.s to assym.inc 2018-03-20 17:58:51 +00:00
ofw_machdep.c
pm_machdep.c Create sys/reg.h for the common code previously in machine/reg.h 2022-05-12 15:12:59 -07:00
pmap.c Add a VA_IS_CLEANMAP() macro. 2022-05-10 10:47:07 -07:00
ptrace_machdep.c Regularize my copyright notice 2019-12-04 16:56:11 +00:00
sc_machdep.c sc(4) md bits: stop setting sc->kbd entirely 2019-12-30 02:07:55 +00:00
stack_machdep.c Make stack_save*() more robust on MIPS. 2020-12-01 17:17:22 +00:00
stdatomic.c In __sync_bool_compare_and_swap(), return true if the returned value is the 2018-03-23 17:25:19 +00:00
support.S mips: Implement suword16 2022-01-07 14:30:18 +01:00
swtch.S Various fixes to TLS for MIPS. 2020-06-12 21:21:18 +00:00
sys_machdep.c Various fixes to TLS for MIPS. 2020-06-12 21:21:18 +00:00
tick.c mips: clean up empty lines in .c and .h files 2020-09-01 21:21:19 +00:00
tlb.c [mips] remove check that is always false (unsinged < 0) 2019-01-25 19:58:56 +00:00
trap.c Handle KDB_WHY_TRAP return on arm and mips 2021-01-02 19:07:04 -04:00
uio_machdep.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
uma_machdep.c Convert vm_page_alloc() callers to use vm_page_alloc_noobj(). 2021-11-03 13:39:36 -04:00
vm_machdep.c Simplify swi for bus_dma. 2022-04-29 14:27:47 -07:00