]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
x86/entry: Fix build with older toolchains
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 9 Apr 2024 20:39:51 +0000 (21:39 +0100)
committerStefano Stabellini <stefano.stabellini@amd.com>
Tue, 9 Apr 2024 21:25:01 +0000 (14:25 -0700)
Binutils older than 2.29 doesn't know INCSSPD.

Fixes: 8e186f98ce0e ("x86: Use indirect calls in reset-stack infrastructure")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/x86/x86_64/entry.S

index 461bbc35587261751178a6a6fd2e8b121550d116..a4615e1ccbaf7476fd4e598fe6a8d0c615981272 100644 (file)
@@ -650,7 +650,9 @@ FUNC(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: