Big endian arm boxes need to have a uname -m of armeb, not arm, so

that the bootstrap from source works correctly.

MFC after:	4 days
This commit is contained in:
Warner Losh 2012-05-05 07:15:34 +00:00
parent e0e3e85dc0
commit 6593be0158
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=235050

View File

@ -52,11 +52,16 @@ __FBSDID("$FreeBSD$");
#include <sys/kernel.h>
#include <sys/sysctl.h>
#include <machine/cpu.h>
#include <machine/endian.h>
#include <machine/cpuconf.h>
#include <machine/md_var.h>
#if _BYTE_ORDER == _LITTLE_ENDIAN
char machine[] = "arm";
#else
char machine[] = "armeb";
#endif
SYSCTL_STRING(_hw, HW_MACHINE, machine, CTLFLAG_RD,
machine, 0, "Machine class");