git: a68dcfaf0236 - main - linuxkpi: Define and fill `struct cpuinfo_x86->x86_stepping`
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 24 Jun 2026 16:47:52 UTC
The branch main has been updated by dumbbell:
URL: https://cgit.FreeBSD.org/src/commit/?id=a68dcfaf0236468703201e4f9a52139bd955bc45
commit a68dcfaf0236468703201e4f9a52139bd955bc45
Author: Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2026-06-17 13:55:19 +0000
Commit: Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2026-06-24 16:47:09 +0000
linuxkpi: Define and fill `struct cpuinfo_x86->x86_stepping`
This will be used in a follow-up commit to implement `x86_match_cpu()`.
Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57698
---
sys/compat/linuxkpi/common/include/asm/processor.h | 1 +
sys/compat/linuxkpi/common/src/linux_compat.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/sys/compat/linuxkpi/common/include/asm/processor.h b/sys/compat/linuxkpi/common/include/asm/processor.h
index 2bc4b6532544..8b5aa1dfcce6 100644
--- a/sys/compat/linuxkpi/common/include/asm/processor.h
+++ b/sys/compat/linuxkpi/common/include/asm/processor.h
@@ -51,6 +51,7 @@ struct cpuinfo_x86 {
uint16_t x86_clflush_size;
uint16_t x86_max_cores;
uint8_t x86_vendor;
+ uint8_t x86_stepping;
};
extern struct cpuinfo_x86 boot_cpu_data;
diff --git a/sys/compat/linuxkpi/common/src/linux_compat.c b/sys/compat/linuxkpi/common/src/linux_compat.c
index e93963428195..78abbf1716e4 100644
--- a/sys/compat/linuxkpi/common/src/linux_compat.c
+++ b/sys/compat/linuxkpi/common/src/linux_compat.c
@@ -2907,6 +2907,7 @@ linux_compat_init(void *arg)
boot_cpu_data.x86 = CPUID_TO_FAMILY(cpu_id);
boot_cpu_data.x86_model = CPUID_TO_MODEL(cpu_id);
boot_cpu_data.x86_vendor = x86_vendor;
+ boot_cpu_data.x86_stepping = CPUID_TO_STEPPING(cpu_id);
__cpu_data = kmalloc_array(mp_maxid + 1,
sizeof(*__cpu_data), M_WAITOK | M_ZERO);