Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174823942
D20371.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D20371.id.diff
View Options
Index: head/sys/mips/atheros/ar531x/ar5315_machdep.c
===================================================================
--- head/sys/mips/atheros/ar531x/ar5315_machdep.c
+++ head/sys/mips/atheros/ar531x/ar5315_machdep.c
@@ -146,6 +146,8 @@
"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)
@@ -259,6 +261,8 @@
printf(" a1 = %08x\n", a1);
printf(" a2 = %08x\n", a2);
printf(" a3 = %08x\n", a3);
+
+ strcpy(cpu_model, ar5315_get_system_type());
/*
* XXX this code is very redboot specific.
Index: head/sys/mips/mips/machdep.c
===================================================================
--- head/sys/mips/mips/machdep.c
+++ head/sys/mips/mips/machdep.c
@@ -186,6 +186,8 @@
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);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 7, 5:56 AM (10 m, 53 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40340537
Default Alt Text
D20371.id.diff (1 KB)
Attached To
Mode
D20371: CPU model display in dmesg on mips target
Attached
Detach File
Event Timeline
Log In to Comment