The branch stable/15 has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=5ed7b34469d1ac8e250b8dfe9b6139f4ea117331

commit 5ed7b34469d1ac8e250b8dfe9b6139f4ea117331
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-07-01 23:29:04 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-07-06 01:05:52 +0000

    x86: add CPUID bits for SHA512/SM3/SM4
    
    (cherry picked from commit cf851111b02fae7425f9642460762d644983fdca)
---
 sys/x86/include/specialreg.h | 3 +++
 sys/x86/x86/identcpu.c       | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/sys/x86/include/specialreg.h b/sys/x86/include/specialreg.h
index 7933291a752e..dbd0e25639f9 100644
--- a/sys/x86/include/specialreg.h
+++ b/sys/x86/include/specialreg.h
@@ -548,6 +548,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
index e8ac6d2a812c..51ee58f4de87 100644
--- a/sys/x86/x86/identcpu.c
+++ b/sys/x86/x86/identcpu.c
@@ -1051,6 +1051,9 @@ printcpuinfo(void)
                                printf("\n  Structured Extended Features4=0x%b",
                                    cpu_stdext_feature4,
                                       "\020"
+                                      "\001SHA512"
+                                      "\002SM3"
+                                      "\003SM4"
                                       "\007LASS"
                                       "\022FRED"
                                       "\023LKGS"

Reply via email to