opnsense-src/sys/compat/linuxkpi/common/include/asm
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
..
fpu copyright: chase my name and email change 2023-01-06 15:28:42 -05:00
atomic-long.h linuxkpi: Fix atomic_long_sub() overflow 2023-01-25 22:26:54 +01:00
atomic.h linuxkpi: Add cmpxchg64() in <asm/atomic.h> 2022-12-01 14:59:16 +01:00
atomic64.h linuxkpi: retire now-unused MIPS support 2022-10-17 16:31:20 -04:00
barrier.h linuxkpi: Add smp_mb__before/after_atomic 2022-08-08 15:22:35 +02:00
byteorder.h LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards 2022-01-10 22:49:38 +03:00
cpufeature.h LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards 2022-01-10 22:49:38 +03:00
fcntl.h LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards 2022-01-10 22:49:38 +03:00
intel-family.h linuxkpi: Define cpu_data(cpu) 2023-02-13 22:09:32 +01:00
io.h LinuxKPI: add virt_to_phys() 2022-11-08 18:18:01 +00:00
iosf_mbi.h linuxkpi: Add asm/iosfmbi.h 2022-06-29 09:55:19 +02:00
msr.h LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards 2022-01-10 22:49:38 +03:00
neon.h copyright: chase my name and email change 2023-01-06 15:28:42 -05:00
pgtable.h linuxkpi: pgtable: Add more defines 2022-08-18 09:46:33 +02:00
processor.h linuxkpi: Define cpu_data(cpu) 2023-02-13 22:09:32 +01:00
set_memory.h linuxkpi: Add asm/set_memory.h 2022-06-29 09:55:23 +02:00
smp.h linuxkpi: Try to solve headers dependencies 2023-01-30 23:09:52 +01:00
types.h LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards 2022-01-10 22:49:38 +03:00
uaccess.h linuxkpi: Add user_write_access_* 2022-02-17 09:30:55 +01:00
unaligned.h LinuxKPI: add get_unaligned_le16() 2022-02-14 00:09:57 +00:00