Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177564343
D58003.1794743858.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
865 B
Referenced Files
None
Subscribers
None
D58003.1794743858.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
Sun, Nov 15, 11:57 AM (15 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41742476
Default Alt Text
D58003.1794743858.diff (865 B)
Attached To
Mode
D58003: x86: add CPUID bits for SHA512/SM3/SM4
Attached
Detach File
Event Timeline