freebsd-dev/sys/compat
Jean-Sébastien Pédron a27902c183
linuxkpi: Define cpu_data(cpu)
`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
2023-02-13 22:09:32 +01:00
..
freebsd32 ptrace(2): add PT_SC_REMOTE remote syscall request 2022-12-22 23:11:35 +02:00
ia32 Retire sv_transtrap 2022-05-20 14:54:03 +03:00
lindebugfs lindebugfs: Add debugfs_create_file_size() 2023-01-25 23:23:16 +01:00
linprocfs linprocfs: Migrate to IfAPI 2023-02-03 09:38:03 -05:00
linsysfs linsysfs: Use IfAPI accessors 2023-02-03 09:38:03 -05:00
linux linux(4): Get rid of the opt_compat.h include. 2023-02-12 20:24:32 +03:00
linuxkpi linuxkpi: Define cpu_data(cpu) 2023-02-13 22:09:32 +01:00
x86bios pmap_unmapdev/bios: Accept a pointer instead of a vm_offset_t. 2022-09-22 15:08:52 -07:00