Add the hw.machine sysctl.

This commit is contained in:
Olivier Houchard 2004-09-23 22:11:43 +00:00
parent a7e3e43349
commit f0c85e996a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135652

View File

@ -49,12 +49,16 @@ __FBSDID("$FreeBSD$");
#include <sys/time.h>
#include <sys/proc.h>
#include <sys/conf.h>
#include <sys/kernel.h>
#include <sys/sysctl.h>
#include <machine/cpu.h>
#include <machine/cpuconf.h>
char machine[] = "arm";
SYSCTL_STRING(_hw, HW_MACHINE, machine, CTLFLAG_RD,
machine, 0, "Machine class");
enum cpu_class {
CPU_CLASS_NONE,
CPU_CLASS_ARM2,