Display CPU model in dmesg on mips targets

Also, save the CPU model for atheros ar531x boards.

Submitted by: Hiroki Mori
Differential Revision: https://reviews.freebsd.org/D20371
This commit is contained in:
Warner Losh 2019-05-24 01:43:35 +00:00
parent 14b9f06b36
commit 48e3ba2f5a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348217
2 changed files with 6 additions and 0 deletions

View File

@ -146,6 +146,8 @@ SYSCTL_STRING(_hw_device, OID_AUTO, revision, CTLFLAG_RD, hw_device_revision, 0,
"Board revision");
#endif
extern char cpu_model[];
void
platform_start(__register_t a0 __unused, __register_t a1 __unused,
__register_t a2 __unused, __register_t a3 __unused)
@ -260,6 +262,8 @@ platform_start(__register_t a0 __unused, __register_t a1 __unused,
printf(" a2 = %08x\n", a2);
printf(" a3 = %08x\n", a3);
strcpy(cpu_model, ar5315_get_system_type());
/*
* XXX this code is very redboot specific.
*/

View File

@ -186,6 +186,8 @@ cpu_startup(void *dummy)
if (boothowto & RB_VERBOSE)
bootverbose++;
printf("CPU model: %s\n", cpu_model);
printf("real memory = %ju (%juK bytes)\n", ptoa((uintmax_t)realmem),
ptoa((uintmax_t)realmem) / 1024);