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>
This commit is contained in:
Andrew Cooper authored and Stefano Stabellini committed 2024-04-09 14:25:01 -07:00
1 parent d5887c0dec
commit a9fa825008
1 file changed
+2
+2
View 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:
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.