diff --git a/sys/kern/kern_mib.c b/sys/kern/kern_mib.c --- a/sys/kern/kern_mib.c +++ b/sys/kern/kern_mib.c @@ -318,6 +318,9 @@ CTLFLAG_MPSAFE, NULL, 0, sysctl_hw_machine_arch, "A", "System architecture"); +SYSCTL_STRING(_hw, HW_MACHINE_REAL_ARCH, machine_real_arch, CTLFLAG_RD | CTLFLAG_MPSAFE, + MACHINE_ARCH, 0, "System architecture (not altered by ABI of the caller)"); + #ifndef MACHINE_ARCHES #ifdef COMPAT_FREEBSD32 #define MACHINE_ARCHES MACHINE_ARCH " " MACHINE_ARCH32 diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h --- a/sys/sys/sysctl.h +++ b/sys/sys/sysctl.h @@ -1041,6 +1041,7 @@ #define HW_FLOATINGPT 10 /* int: has HW floating point? */ #define HW_MACHINE_ARCH 11 /* string: machine architecture */ #define HW_REALMEM 12 /* int: 'real' memory */ +#define HW_MACHINE_REAL_ARCH 11 /* string: machine architecture */ /* * CTL_USER definitions