diff options
| author | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2026-06-17 13:55:19 +0000 |
|---|---|---|
| committer | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2026-06-24 16:47:09 +0000 |
| commit | a68dcfaf0236468703201e4f9a52139bd955bc45 (patch) | |
| tree | 0caac940c7bef7a61d13e93bd4752038d0d2ec12 /sys | |
| parent | 8aa685153bd6a05f6c0f89ae067d67a00a984c05 (diff) | |
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/compat/linuxkpi/common/include/asm/processor.h | 1 | ||||
| -rw-r--r-- | sys/compat/linuxkpi/common/src/linux_compat.c | 1 |
2 files changed, 2 insertions, 0 deletions
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); |
