summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2015-07-14 05:14:10 +0000
committeradrian <adrian@FreeBSD.org>2015-07-14 05:14:10 +0000
commitaf6717c22916ab249718862326cd8ce5f9f5f47a (patch)
tree803a8b8ea13c104f82a8f17f0ab2c62e5cb688a0 /sys/mips
parent52344fe37304acae8a3140b1430324672861d749 (diff)
downloadFreeBSD-src-af6717c22916ab249718862326cd8ce5f9f5f47a.zip
FreeBSD-src-af6717c22916ab249718862326cd8ce5f9f5f47a.tar.gz
Populate hw.model with the CPU model information.
Now you see something like: # sysctl hw.model hw.model: Atheros AR9330 rev 1 Tested: * Carambola 2, AR9331 SoC
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/atheros/ar71xx_machdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/mips/atheros/ar71xx_machdep.c b/sys/mips/atheros/ar71xx_machdep.c
index 02302fd..a974bba 100644
--- a/sys/mips/atheros/ar71xx_machdep.c
+++ b/sys/mips/atheros/ar71xx_machdep.c
@@ -304,6 +304,8 @@ ar71xx_platform_check_mac_hints(void)
return (0);
}
+extern char cpu_model[];
+
void
platform_start(__register_t a0 __unused, __register_t a1 __unused,
__register_t a2 __unused, __register_t a3 __unused)
@@ -417,6 +419,8 @@ platform_start(__register_t a0 __unused, __register_t a1 __unused,
printf(" a2 = %08x\n", a2);
printf(" a3 = %08x\n", a3);
+ strcpy(cpu_model, ar71xx_get_system_type());
+
/*
* XXX this code is very redboot specific.
*/
OpenPOWER on IntegriCloud