drm/panthor: Don't add write fences to the shared BOs
[drm/drm-misc.git] / arch / x86 / kernel / ibt_selftest.S
blobc43c4ed28a9cc369dc45e1122d73345e1661236b
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <linux/linkage.h>
3 #include <linux/objtool.h>
4 #include <asm/nospec-branch.h>
6 SYM_CODE_START(ibt_selftest_noendbr)
7         ANNOTATE_NOENDBR
8         UNWIND_HINT_FUNC
9         /* #CP handler sets %ax to 0 */
10         RET
11 SYM_CODE_END(ibt_selftest_noendbr)
13 SYM_FUNC_START(ibt_selftest)
14         lea ibt_selftest_noendbr(%rip), %rax
15         ANNOTATE_RETPOLINE_SAFE
16         jmp *%rax
17 SYM_FUNC_END(ibt_selftest)