Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 2007 00:29:29 GMT
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 114601 for review
Message-ID:  <200702160029.l1G0TThv028421@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=114601

Change 114601 by gonzo@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.
  */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702160029.l1G0TThv028421>