aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/ptrace.h
diff options
context:
space:
mode:
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>2010-03-11 14:49:06 +0000
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>2010-03-11 14:49:06 +0000
commit841c0c7ec75bef3c9920cd811270f9f84791ee04 (patch)
treee7bb2301107c48074cb0dbfffd43ee1f7e425d97 /sys/sys/ptrace.h
parent343803ad831302c8914105ef7dec9e7544750d1e (diff)
downloadsrc-841c0c7ec75bef3c9920cd811270f9f84791ee04.tar.gz
src-841c0c7ec75bef3c9920cd811270f9f84791ee04.zip
Provide groundwork for 32-bit binary compatibility on non-x86 platforms,
for upcoming 64-bit PowerPC and MIPS support. This renames the COMPAT_IA32 option to COMPAT_FREEBSD32, removes some IA32-specific code from MI parts of the kernel and enhances the freebsd32 compatibility code to support big-endian platforms. Reviewed by: kib, jhb
Notes
Notes: svn path=/head/; revision=205014
Diffstat (limited to 'sys/sys/ptrace.h')
-rw-r--r--sys/sys/ptrace.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/ptrace.h b/sys/sys/ptrace.h
index e3653b657d1a..b30447cfb682 100644
--- a/sys/sys/ptrace.h
+++ b/sys/sys/ptrace.h
@@ -34,6 +34,7 @@
#define _SYS_PTRACE_H_
#include <sys/_sigset.h>
+#include <machine/reg.h>
#define PT_TRACE_ME 0 /* child declares it's being traced */
#define PT_READ_I 1 /* read word in child's I space */
@@ -157,7 +158,7 @@ int proc_read_dbregs(struct thread *_td, struct dbreg *_dbreg);
int proc_write_dbregs(struct thread *_td, struct dbreg *_dbreg);
int proc_sstep(struct thread *_td);
int proc_rwmem(struct proc *_p, struct uio *_uio);
-#ifdef COMPAT_IA32
+#ifdef COMPAT_FREEBSD32
struct reg32;
struct fpreg32;
struct dbreg32;