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:
imp 2012-05-05 07:15:34 +00:00
parent f427ad6df4
commit 45d1b389bc

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");