aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/i386
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/i386/i386
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/i386/i386')
-rw-r--r--sys/i386/i386/db_trace.c2
-rw-r--r--sys/i386/i386/gdb_machdep.c2
-rw-r--r--sys/i386/i386/machdep.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/i386/db_trace.c b/sys/i386/i386/db_trace.c
index 80ef0fe715d8..529b94b76cc4 100644
--- a/sys/i386/i386/db_trace.c
+++ b/sys/i386/i386/db_trace.c
@@ -31,13 +31,13 @@ __FBSDID("$FreeBSD$");
#include <sys/systm.h>
#include <sys/kdb.h>
#include <sys/proc.h>
+#include <sys/reg.h>
#include <sys/sysent.h>
#include <machine/cpu.h>
#include <machine/frame.h>
#include <machine/md_var.h>
#include <machine/pcb.h>
-#include <machine/reg.h>
#include <machine/stack.h>
#include <vm/vm.h>
diff --git a/sys/i386/i386/gdb_machdep.c b/sys/i386/i386/gdb_machdep.c
index 549c6de7ba1b..766f38f181f8 100644
--- a/sys/i386/i386/gdb_machdep.c
+++ b/sys/i386/i386/gdb_machdep.c
@@ -34,13 +34,13 @@ __FBSDID("$FreeBSD$");
#include <sys/kdb.h>
#include <sys/kernel.h>
#include <sys/proc.h>
+#include <sys/reg.h>
#include <sys/signal.h>
#include <machine/endian.h>
#include <machine/frame.h>
#include <machine/gdb_machdep.h>
#include <machine/pcb.h>
-#include <machine/reg.h>
#include <machine/trap.h>
#include <gdb/gdb.h>
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index 869ee9958d25..1366939cda6e 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -82,6 +82,7 @@ __FBSDID("$FreeBSD$");
#include <sys/pcpu.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>
@@ -129,7 +130,6 @@ __FBSDID("$FreeBSD$");
#include <machine/pcb.h>
#include <machine/pcb_ext.h>
#include <machine/proc.h>
-#include <machine/reg.h>
#include <machine/sigframe.h>
#include <machine/specialreg.h>
#include <machine/sysarch.h>