diff options
author | kib <kib@FreeBSD.org> | 2010-07-22 09:13:49 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2010-07-22 09:13:49 +0000 |
commit | 9ac2754b6d3dd9b7de4909a0d80515d971da738e (patch) | |
tree | a1e7b78633c799b8be45f7c7e0bf35589eceef96 /sys/powerpc | |
parent | 3f34a9652f0bdd0c831fbb46eb6f576ec725fd9c (diff) | |
download | FreeBSD-src-9ac2754b6d3dd9b7de4909a0d80515d971da738e.zip FreeBSD-src-9ac2754b6d3dd9b7de4909a0d80515d971da738e.tar.gz |
When compat32 binary asks for the value of hw.machine_arch, report the
name of 32bit sibling architecture instead of the host one. Do the
same for hw.machine on amd64.
Add a safety belt debug.adaptive_machine_arch sysctl, to turn the
substitution off.
Reviewed by: jhb, nwhitehorn
MFC after: 2 weeks
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/include/param.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/powerpc/include/param.h b/sys/powerpc/include/param.h index 4aeabe7..91bb238 100644 --- a/sys/powerpc/include/param.h +++ b/sys/powerpc/include/param.h @@ -61,6 +61,11 @@ #endif #endif #define MID_MACHINE MID_POWERPC +#ifdef __powerpc64__ +#ifndef MACHINE_ARCH32 +#define MACHINE_ARCH32 "powerpc" +#endif +#endif #if defined(SMP) || defined(KLD_MODULE) #define MAXCPU 2 |