Date: Thu, 10 Aug 2006 01:58:24 GMT From: Marcel Moolenaar <marcel@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 103546 for review Message-ID: <200608100158.k7A1wOJB038639@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103546 Change 103546 by marcel@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 };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608100158.k7A1wOJB038639>