<sys/platform/x86.h>: Add WRMSRNS support

Add WRMSRNS support to <sys/platform/x86.h>.
Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
This commit is contained in:
H.J. Lu 2023-04-05 09:21:37 -07:00
parent a00db8305d
commit 227983551d
3 changed files with 5 additions and 0 deletions

View File

@ -679,6 +679,9 @@ using a TSC deadline value.
@item @item
@code{WIDE_KL} -- AES wide Key Locker instructions. @code{WIDE_KL} -- AES wide Key Locker instructions.
@item
@code{WRMSRNS} -- WRMSRNS instruction.
@item @item
@code{X2APIC} -- x2APIC. @code{X2APIC} -- x2APIC.

View File

@ -297,6 +297,7 @@ enum
x86_cpu_FZLRM = x86_cpu_index_7_ecx_1_eax + 10, x86_cpu_FZLRM = x86_cpu_index_7_ecx_1_eax + 10,
x86_cpu_FSRS = x86_cpu_index_7_ecx_1_eax + 11, x86_cpu_FSRS = x86_cpu_index_7_ecx_1_eax + 11,
x86_cpu_FSRCS = x86_cpu_index_7_ecx_1_eax + 12, x86_cpu_FSRCS = x86_cpu_index_7_ecx_1_eax + 12,
x86_cpu_WRMSRNS = x86_cpu_index_7_ecx_1_eax + 19,
x86_cpu_HRESET = x86_cpu_index_7_ecx_1_eax + 22, x86_cpu_HRESET = x86_cpu_index_7_ecx_1_eax + 22,
x86_cpu_LAM = x86_cpu_index_7_ecx_1_eax + 26, x86_cpu_LAM = x86_cpu_index_7_ecx_1_eax + 26,

View File

@ -209,6 +209,7 @@ do_test (void)
CHECK_CPU_FEATURE_PRESENT (FZLRM); CHECK_CPU_FEATURE_PRESENT (FZLRM);
CHECK_CPU_FEATURE_PRESENT (FSRS); CHECK_CPU_FEATURE_PRESENT (FSRS);
CHECK_CPU_FEATURE_PRESENT (FSRCS); CHECK_CPU_FEATURE_PRESENT (FSRCS);
CHECK_CPU_FEATURE_PRESENT (WRMSRNS);
CHECK_CPU_FEATURE_PRESENT (HRESET); CHECK_CPU_FEATURE_PRESENT (HRESET);
CHECK_CPU_FEATURE_PRESENT (LAM); CHECK_CPU_FEATURE_PRESENT (LAM);
CHECK_CPU_FEATURE_PRESENT (AESKLE); CHECK_CPU_FEATURE_PRESENT (AESKLE);