Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F101922963
D43281.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
696 B
Referenced Files
None
Subscribers
None
D43281.diff
View Options
diff --git a/sys/x86/include/x86_var.h b/sys/x86/include/x86_var.h
--- a/sys/x86/include/x86_var.h
+++ b/sys/x86/include/x86_var.h
@@ -58,6 +58,7 @@
extern u_int cpu_procinfo;
extern u_int cpu_procinfo2;
extern char cpu_vendor[];
+extern char cpu_model[];
extern u_int cpu_vendor_id;
extern u_int cpu_mon_mwait_flags;
extern u_int cpu_mon_min_size;
diff --git a/sys/x86/x86/identcpu.c b/sys/x86/x86/identcpu.c
--- a/sys/x86/x86/identcpu.c
+++ b/sys/x86/x86/identcpu.c
@@ -157,7 +157,7 @@
machine, 0, "Machine class");
#endif
-static char cpu_model[128];
+char cpu_model[128];
SYSCTL_STRING(_hw, HW_MODEL, model, CTLFLAG_RD | CTLFLAG_MPSAFE,
cpu_model, 0, "Machine model");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 6, 3:14 PM (13 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14490859
Default Alt Text
D43281.diff (696 B)
Attached To
Mode
D43281: x86: Export cpu_model[]
Attached
Detach File
Event Timeline
Log In to Comment