From 5e8ea68fd87000c7fce8a97f8ef8424d3c78e8f8 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sat, 3 Oct 2020 23:07:09 +0000 Subject: [PATCH] Move ctx_switch_xsave declaration to amd64 md_var.h. Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/amd64/include/md_var.h | 1 + sys/x86/include/x86_var.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/amd64/include/md_var.h b/sys/amd64/include/md_var.h index 7169474b31db..adef2a9c521d 100644 --- a/sys/amd64/include/md_var.h +++ b/sys/amd64/include/md_var.h @@ -36,6 +36,7 @@ #include +extern char ctx_switch_xsave[]; extern int hw_lower_amd64_sharedpage; extern int hw_ibrs_disable; extern int hw_ssb_disable; diff --git a/sys/x86/include/x86_var.h b/sys/x86/include/x86_var.h index a1ce8f9e3113..f64fd5539b91 100644 --- a/sys/x86/include/x86_var.h +++ b/sys/x86/include/x86_var.h @@ -71,7 +71,6 @@ extern u_int cpu_power_eax; extern u_int cpu_power_ebx; extern u_int cpu_power_ecx; extern u_int cpu_power_edx; -extern char ctx_switch_xsave[]; extern u_int hv_base; extern u_int hv_high; extern char hv_vendor[];