mirror of
https://github.com/opnsense/src.git
synced 2026-02-24 02:10:45 -05:00
`cpu_data(cpu)` evaluates to a `struct cpuinfo_x86` filled with attributes of the given CPU number. The CPU number is an index in the `__cpu_data[]` array with MAXCPU entries. On FreeBSD, we simply initialize all of them like we do with `boot_cpu_data`. While here, we add the `x86_model` field to the `struct cpuinfo_x86`. We use `CPUID_TO_MODEL()` to set it. At the same time, we fix the value of `x86` which should have been set to the CPU family. It was using the same implementation as `CPUID_TO_MODEL()` before. It now uses `CPUID_TO_FAMILY()`. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38542 |
||
|---|---|---|
| .. | ||
| fpu | ||
| atomic-long.h | ||
| atomic.h | ||
| atomic64.h | ||
| barrier.h | ||
| byteorder.h | ||
| cpufeature.h | ||
| fcntl.h | ||
| intel-family.h | ||
| io.h | ||
| iosf_mbi.h | ||
| msr.h | ||
| neon.h | ||
| pgtable.h | ||
| processor.h | ||
| set_memory.h | ||
| smp.h | ||
| types.h | ||
| uaccess.h | ||
| unaligned.h | ||