diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2008-12-29 12:41:32 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2008-12-29 12:41:32 +0000 |
| commit | c990bf089616d4efa5f72b4e5fedad34a1b4dcf5 (patch) | |
| tree | 1fc60fc9472ea3528e5d00ae25472bd30128aa4b | |
| parent | 505d02eebe03a5a47b0245eea1b25f5b3aa0120c (diff) | |
Notes
| -rw-r--r-- | sys/fs/procfs/procfs_map.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/sys/fs/procfs/procfs_map.c b/sys/fs/procfs/procfs_map.c index 0d413450d57ff..2d3c17e5bfec6 100644 --- a/sys/fs/procfs/procfs_map.c +++ b/sys/fs/procfs/procfs_map.c @@ -46,6 +46,9 @@ #include <sys/mutex.h> #include <sys/proc.h> #include <sys/sbuf.h> +#ifdef COMPAT_IA32 +#include <sys/sysent.h> +#endif #include <sys/uio.h> #include <sys/vnode.h> @@ -59,15 +62,6 @@ #include <vm/vm_page.h> #include <vm/vm_object.h> -#ifdef COMPAT_IA32 -#include <sys/procfs.h> -#include <machine/fpu.h> -#include <compat/ia32/ia32_reg.h> - -extern struct sysentvec ia32_freebsd_sysvec; -#endif - - #define MEBUFFERSIZE 256 /* @@ -104,8 +98,8 @@ procfs_doprocmap(PFS_FILL_ARGS) return (EOPNOTSUPP); #ifdef COMPAT_IA32 - if (curthread->td_proc->p_sysent == &ia32_freebsd_sysvec) { - if (p->p_sysent != &ia32_freebsd_sysvec) + if (curproc->p_sysent->sv_flags & SV_ILP32) { + if (!(p->p_sysent->sv_flags & SV_ILP32)) return (EOPNOTSUPP); wrap32 = 1; } |
