From: Andrew Cooper Date: Tue, 9 Apr 2024 20:39:51 +0000 (+0100) Subject: x86/entry: Fix build with older toolchains X-Git-Tag: RELEASE-4.15.7~4 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ab125048b9ba462ce70b8dceb28c90fcac9675c3;p=xen.git x86/entry: Fix build with older toolchains Binutils older than 2.29 doesn't know INCSSPD. Fixes: 8e186f98ce0e ("x86: Use indirect calls in reset-stack infrastructure") Signed-off-by: Andrew Cooper Reviewed-by: Stefano Stabellini (cherry picked from commit a9fa82500818a8d8ce5f2843f1577bd2c29d088e) --- diff --git a/xen/arch/x86/x86_64/entry.S b/xen/arch/x86/x86_64/entry.S index e677071610..968176124f 100644 --- a/xen/arch/x86/x86_64/entry.S +++ b/xen/arch/x86/x86_64/entry.S @@ -589,7 +589,9 @@ ENTRY(continue_pv_domain) * JMPed to. Drop the return address. */ add $8, %rsp +#ifdef CONFIG_XEN_SHSTK ALTERNATIVE "", "mov $2, %eax; incsspd %eax", X86_FEATURE_XEN_SHSTK +#endif call check_wakeup_from_wait ret_from_intr: