aboutsummaryrefslogtreecommitdiff
path: root/sys/mips/include
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2015-04-08 16:30:45 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2015-04-08 16:30:45 +0000
commitdbee5c671aa8cf7673e92ca7ce6d227f52cb185c (patch)
treea1dea0225d1fa16c515ed09d8f0b6b25343920ea /sys/mips/include
parentd61251e9345d11fb0e86949a84a6e6540944ce45 (diff)
downloadsrc-dbee5c671aa8cf7673e92ca7ce6d227f52cb185c.tar.gz
src-dbee5c671aa8cf7673e92ca7ce6d227f52cb185c.zip
Move the 32-bit compatible procfs types from freebsd32.h to <sys/procfs.h>
and export them to userland. - Define __HAVE_REG32 on platforms that define a reg32 structure and check for this in <sys/procfs.h> to control when to export prstatus32, etc. - Add prstatus32_t and prpsinfo32_t typedefs for the 32-bit structures. libbfd looks for these types, and having them fixes 'gcore' in gdb of a 32-bit process on a 64-bit platform. - Use the structure definitions from <sys/procfs.h> in gcore's elf32 core dump code instead of duplicating the definitions. Differential Revision: https://reviews.freebsd.org/D2142 Reviewed by: kib, nathanw (powerpc bits) MFC after: 1 week
Notes
Notes: svn path=/head/; revision=281266
Diffstat (limited to 'sys/mips/include')
-rw-r--r--sys/mips/include/reg.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/mips/include/reg.h b/sys/mips/include/reg.h
index c240506f7896..0dc36c6b3204 100644
--- a/sys/mips/include/reg.h
+++ b/sys/mips/include/reg.h
@@ -70,7 +70,7 @@ struct dbreg {
unsigned long junk;
};
-#ifdef COMPAT_FREEBSD32
+#ifdef __LP64__
/* Must match struct trapframe */
struct reg32 {
uint32_t r_regs[NUMSAVEREGS];
@@ -83,6 +83,8 @@ struct fpreg32 {
struct dbreg32 {
uint32_t junk;
};
+
+#define __HAVE_REG32
#endif
#ifdef _KERNEL