PERFORCE change 103546 for review
Marcel Moolenaar
marcel at FreeBSD.org
Thu Aug 10 01:58:26 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=103546
Change 103546 by marcel at marcel_nfs on 2006/08/10 01:58:22
Define sv_reg, sv_fpreg and sv_dbreg for IA-32 emulation.
Affected files ...
.. //depot/projects/gdb/sys/compat/ia32/ia32_sysvec.c#7 edit
Differences ...
==== //depot/projects/gdb/sys/compat/ia32/ia32_sysvec.c#7 (text+ko) ====
@@ -45,6 +45,7 @@
#include <sys/pioctl.h>
#include <sys/proc.h>
#include <sys/procfs.h>
+#include <sys/ptrace.h>
#include <sys/resourcevar.h>
#include <sys/systm.h>
#include <sys/signalvar.h>
@@ -67,6 +68,7 @@
#include <compat/freebsd32/freebsd32_util.h>
#include <compat/freebsd32/freebsd32_proto.h>
#include <compat/freebsd32/freebsd32_syscall.h>
+#include <compat/ia32/ia32_reg.h>
#include <compat/ia32/ia32_signal.h>
#ifdef __amd64__
#include <machine/psl.h>
@@ -99,6 +101,24 @@
SYSCTL_NODE(_compat, OID_AUTO, ia32, CTLFLAG_RW, 0, "ia32 mode");
+static struct ptregset ia32_regs = {
+ .rs_size = sizeof(struct reg32),
+ .rs_read = (ptregset_readf)fill_regs32,
+ .rs_write = (ptregset_writef)set_regs32
+};
+
+static struct ptregset ia32_fpregs = {
+ .rs_size = sizeof(struct fpreg32),
+ .rs_read = (ptregset_readf)fill_fpregs32,
+ .rs_write = (ptregset_writef)set_fpregs32
+};
+
+static struct ptregset ia32_dbregs = {
+ .rs_size = sizeof(struct dbreg32),
+ .rs_read = (ptregset_readf)fill_dbregs32,
+ .rs_write = (ptregset_writef)set_dbregs32
+};
+
struct sysentvec ia32_freebsd_sysvec = {
FREEBSD32_SYS_MAXSYSCALL,
freebsd32_sysent,
@@ -125,7 +145,10 @@
VM_PROT_ALL,
ia32_copyout_strings,
ia32_setregs,
- ia32_fixlimits
+ ia32_fixlimits,
+ &ia32_regs,
+ &ia32_fpregs,
+ &ia32_dbregs
};
More information about the p4-projects
mailing list