x86_64/specialreg.h: Deprecate old defines of Spectre mitigation
authorAaron LI <aly@aaronly.me>
Wed, 26 May 2021 11:40:58 +0000 (19:40 +0800)
committerAaron LI <aly@aaronly.me>
Tue, 15 Jun 2021 13:36:45 +0000 (21:36 +0800)
commitb353800ea7460dea7d8f55bb4297043adf0b5203
tree62234974462b230e97941a02e5f6eb4ff34e7b61
parentadaee037969d59140a4061cfcdf7bef6249057e3
x86_64/specialreg.h: Deprecate old defines of Spectre mitigation

Migrate the old defines of Spectre mitigation to the new ones obtained
from NetBSD and FreeBSD.  Specifically, apply the following changes:

* CPUID_7_0_I3_* -> CPUID_STDEXT3_*
* CPUID_SEF_* -> CPUID_STDEXT3_*
* CPUID_*_80000008_I1_* -> CPUID_CAPEX_*

In addition, merge the comments to the relevant code.

No functional changes.
sys/cpu/x86_64/include/specialreg.h
sys/platform/pc64/x86_64/identcpu.c
sys/platform/pc64/x86_64/vm_machdep.c