PERFORCE change 114601 for review
Oleksandr Tymoshenko
gonzo at FreeBSD.org
Fri Feb 16 00:29:30 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=114601
Change 114601 by gonzo at gonzo_jeeves on 2007/02/16 00:28:45
o Add suport of hw.machine sysctl for MIPS.
Affected files ...
.. //depot/projects/mips2/src/sys/mips/mips/cpu.c#16 edit
Differences ...
==== //depot/projects/mips2/src/sys/mips/mips/cpu.c#16 (text+ko) ====
@@ -32,6 +32,7 @@
#include <sys/bus.h>
#include <sys/rman.h>
+#include <sys/sysctl.h>
#include <sys/systm.h>
#include <vm/vm.h>
@@ -56,6 +57,11 @@
void mips_get_identity(struct mips_cpuinfo *cpuinfo);
+char machine[] = "mips";
+
+SYSCTL_STRING(_hw, HW_MACHINE, machine, CTLFLAG_RD,
+ machine, 0, "Machine class");
+
/*
* Exception vector table management.
*/
More information about the p4-projects
mailing list