Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162132630
D58003.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
865 B
Referenced Files
None
Subscribers
None
D58003.id.diff
View Options
diff --git a/sys/x86/include/specialreg.h b/sys/x86/include/specialreg.h
--- a/sys/x86/include/specialreg.h
+++ b/sys/x86/include/specialreg.h
@@ -549,6 +549,9 @@
/*
* CPUID instruction 7 Structured Extended Features, leaf 1 eax info
*/
+#define CPUID_STDEXT4_SHA512 0x00000001
+#define CPUID_STDEXT4_SM3 0x00000002
+#define CPUID_STDEXT4_SM4 0x00000004
#define CPUID_STDEXT4_LASS 0x00000040
#define CPUID_STDEXT4_FRED 0x00020000
#define CPUID_STDEXT4_LKGS 0x00040000
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
@@ -1052,6 +1052,9 @@
printf("\n Structured Extended Features4=0x%b",
cpu_stdext_feature4,
"\020"
+ "\001SHA512"
+ "\002SM3"
+ "\003SM4"
"\007LASS"
"\022FRED"
"\023LKGS"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 11, 3:06 AM (7 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34814246
Default Alt Text
D58003.id.diff (865 B)
Attached To
Mode
D58003: x86: add CPUID bits for SHA512/SM3/SM4
Attached
Detach File
Event Timeline
Log In to Comment