diff options
author | imp <imp@FreeBSD.org> | 2011-01-17 22:58:41 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2011-01-17 22:58:41 +0000 |
commit | 568d75acb63aba18007a02280c71c0abf7ab3b08 (patch) | |
tree | 9f7a5435fd47f01c6c15481b8cb5c67f9cea55b0 | |
parent | ea861abf2ae84b93075ddcb0b3abf37e8db5f9b1 (diff) | |
download | FreeBSD-src-568d75acb63aba18007a02280c71c0abf7ab3b08.zip FreeBSD-src-568d75acb63aba18007a02280c71c0abf7ab3b08.tar.gz |
Make cpu_model public (otherwise there's no way to set it) and bump it
to 80 characters.
Add hw.board to export board information, if known, from the mips kernel.
-rw-r--r-- | sys/mips/mips/machdep.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/mips/mips/machdep.c b/sys/mips/mips/machdep.c index 93b803b..9ddec73 100644 --- a/sys/mips/mips/machdep.c +++ b/sys/mips/mips/machdep.c @@ -103,9 +103,12 @@ __FBSDID("$FreeBSD$"); char machine[] = "mips"; SYSCTL_STRING(_hw, HW_MACHINE, machine, CTLFLAG_RD, machine, 0, "Machine class"); -static char cpu_model[30]; +char cpu_model[80]; SYSCTL_STRING(_hw, HW_MODEL, model, CTLFLAG_RD, cpu_model, 0, "Machine model"); +char cpu_board[80]; +SYSCTL_STRING(_hw, OID_AUTO, board, CTLFLAG_RD, cpu_board, 0, "Machine board"); + int cold = 1; long realmem = 0; long Maxmem = 0; |