aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/ia32
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2022-01-24 11:24:17 +0000
committerAndrew Turner <andrew@FreeBSD.org>2022-01-27 11:40:34 +0000
commit548a2ec49bd4ebf9ab00d362257c6bb4d2d7edbc (patch)
tree095171413f5d7b081db09b8497b61d1a55d54f44 /sys/compat/ia32
parent5d5f44623eb3d121d528060d131ee5d6bcd63489 (diff)
Diffstat (limited to 'sys/compat/ia32')
-rw-r--r--sys/compat/ia32/ia32_sysvec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/compat/ia32/ia32_sysvec.c b/sys/compat/ia32/ia32_sysvec.c
index 540c2ef6fdaf..8e6024524614 100644
--- a/sys/compat/ia32/ia32_sysvec.c
+++ b/sys/compat/ia32/ia32_sysvec.c
@@ -33,6 +33,7 @@ __FBSDID("$FreeBSD$");
#define __ELF_WORD_SIZE 32
#include <sys/param.h>
+#include <sys/elf.h>
#include <sys/exec.h>
#include <sys/fcntl.h>
#include <sys/imgact.h>
@@ -44,6 +45,7 @@ __FBSDID("$FreeBSD$");
#include <sys/namei.h>
#include <sys/proc.h>
#include <sys/procfs.h>
+#include <sys/reg.h>
#include <sys/resourcevar.h>
#include <sys/systm.h>
#include <sys/signalvar.h>
@@ -141,6 +143,8 @@ struct sysentvec ia32_freebsd_sysvec = {
.sv_onexec_old = exec_onexec_old,
.sv_onexit = exit_onexit,
.sv_set_fork_retval = x86_set_fork_retval,
+ .sv_regset_begin = SET_BEGIN(__elfN(regset)),
+ .sv_regset_end = SET_LIMIT(__elfN(regset)),
};
INIT_SYSENTVEC(elf_ia32_sysvec, &ia32_freebsd_sysvec);