aboutsummaryrefslogtreecommitdiff
path: root/sys/arm64
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2021-08-27 09:38:40 +0000
committerAndrew Turner <andrew@FreeBSD.org>2021-08-30 11:50:53 +0000
commitb792434150d66b9b2356fb9a7548f4c7f0a0f16c (patch)
treefd9dee6c0d9f0d2b1896c2620bd1e52747dcb278 /sys/arm64
parenta9472032211ddb06cd7d73b941c335b16550b558 (diff)
downloadsrc-b792434150d66b9b2356fb9a7548f4c7f0a0f16c.tar.gz
src-b792434150d66b9b2356fb9a7548f4c7f0a0f16c.zip
Create sys/reg.h for the common code previously in machine/reg.h
Move the common kernel function signatures from machine/reg.h to a new sys/reg.h. This is in preperation for adding PT_GETREGSET to ptrace(2). Reviewed by: imp, markj Sponsored by: DARPA, AFRL (original work) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D19830
Diffstat (limited to 'sys/arm64')
-rw-r--r--sys/arm64/arm64/machdep.c2
-rw-r--r--sys/arm64/include/reg.h20
-rw-r--r--sys/arm64/linux/linux_machdep.c3
3 files changed, 2 insertions, 23 deletions
diff --git a/sys/arm64/arm64/machdep.c b/sys/arm64/arm64/machdep.c
index bce3baf8e1ec..ee6f5157f5f3 100644
--- a/sys/arm64/arm64/machdep.c
+++ b/sys/arm64/arm64/machdep.c
@@ -54,6 +54,7 @@ __FBSDID("$FreeBSD$");
#include <sys/proc.h>
#include <sys/ptrace.h>
#include <sys/reboot.h>
+#include <sys/reg.h>
#include <sys/rwlock.h>
#include <sys/sched.h>
#include <sys/signalvar.h>
@@ -82,7 +83,6 @@ __FBSDID("$FreeBSD$");
#include <machine/metadata.h>
#include <machine/md_var.h>
#include <machine/pcb.h>
-#include <machine/reg.h>
#include <machine/undefined.h>
#include <machine/vmparam.h>
diff --git a/sys/arm64/include/reg.h b/sys/arm64/include/reg.h
index 9cfc5ea1d437..d7c3354bfd2f 100644
--- a/sys/arm64/include/reg.h
+++ b/sys/arm64/include/reg.h
@@ -83,24 +83,4 @@ struct dbreg32 {
#define __HAVE_REG32
-#ifdef _KERNEL
-/*
- * XXX these interfaces are MI, so they should be declared in a MI place.
- */
-int fill_regs(struct thread *, struct reg *);
-int set_regs(struct thread *, struct reg *);
-int fill_fpregs(struct thread *, struct fpreg *);
-int set_fpregs(struct thread *, struct fpreg *);
-int fill_dbregs(struct thread *, struct dbreg *);
-int set_dbregs(struct thread *, struct dbreg *);
-#ifdef COMPAT_FREEBSD32
-int fill_regs32(struct thread *, struct reg32 *);
-int set_regs32(struct thread *, struct reg32 *);
-int fill_fpregs32(struct thread *, struct fpreg32 *);
-int set_fpregs32(struct thread *, struct fpreg32 *);
-int fill_dbregs32(struct thread *, struct dbreg32 *);
-int set_dbregs32(struct thread *, struct dbreg32 *);
-#endif
-#endif
-
#endif /* !_MACHINE_REG_H_ */
diff --git a/sys/arm64/linux/linux_machdep.c b/sys/arm64/linux/linux_machdep.c
index 9ccda3c3d299..fae5bd11653b 100644
--- a/sys/arm64/linux/linux_machdep.c
+++ b/sys/arm64/linux/linux_machdep.c
@@ -36,12 +36,11 @@ __FBSDID("$FreeBSD$");
#include <sys/imgact.h>
#include <sys/ktr.h>
#include <sys/proc.h>
+#include <sys/reg.h>
#include <sys/sdt.h>
#include <security/audit/audit.h>
-#include <machine/reg.h>
-
#include <arm64/linux/linux.h>
#include <arm64/linux/linux_proto.h>
#include <compat/linux/linux_dtrace.h>