x86/entry: Fix build with older toolchains

Binutils older than 2.29 doesn't know INCSSPD.

Fixes: 8e186f98ce ("x86: Use indirect calls in reset-stack infrastructure")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
(cherry picked from commit a9fa825008)
This commit is contained in:
Andrew Cooper committed 2024-04-11 16:36:31 +01:00
1 parent 4b33780de7
commit 150f6cdbfe
1 file changed
+2
+2
View File
@@ -643,7 +643,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:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.