summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2010-04-07 02:24:41 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2010-04-07 02:24:41 +0000
commitc7d735a07c6450e83b752cd349171b48e34c7989 (patch)
tree9cb5c82283f9840994363d827ab9f1affbd07fb4 /sys/modules
parente57fc48ad00a5d6274166cf7517775ba1d2301bd (diff)
downloadFreeBSD-src-c7d735a07c6450e83b752cd349171b48e34c7989.zip
FreeBSD-src-c7d735a07c6450e83b752cd349171b48e34c7989.tar.gz
MFC r205014,205015:
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. This MFC is required for MFCs of later changes to the freebsd32 compatibility from HEAD. Requested by: kib
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/linux/Makefile2
-rw-r--r--sys/modules/procfs/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile
index a24b6b2..a67fcc7 100644
--- a/sys/modules/linux/Makefile
+++ b/sys/modules/linux/Makefile
@@ -2,7 +2,7 @@
.if ${MACHINE_ARCH} == "amd64"
SFX= 32
-CFLAGS+=-DCOMPAT_IA32 -DCOMPAT_LINUX32
+CFLAGS+=-DCOMPAT_FREEBSD32 -DCOMPAT_LINUX32
.endif
.PATH: ${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_ARCH}/linux${SFX}
diff --git a/sys/modules/procfs/Makefile b/sys/modules/procfs/Makefile
index c3b3633..9a94838 100644
--- a/sys/modules/procfs/Makefile
+++ b/sys/modules/procfs/Makefile
@@ -35,7 +35,7 @@ opt_compat.h:
echo "#define COMPAT_FREEBSD5 1" >> ${.TARGET}
echo "#define COMPAT_FREEBSD6 1" >> ${.TARGET}
.if ${MACHINE_ARCH} == "amd64"
- echo "#define COMPAT_IA32 1" >> ${.TARGET}
+ echo "#define COMPAT_FREEBSD32 1" >> ${.TARGET}
echo "#define COMPAT_LINUX32 1" >> ${.TARGET}
.endif
.endif
OpenPOWER on IntegriCloud