Merge branch 'rework/kthreads' into for-linus
[platform/kernel/linux-rpi.git] / arch / x86 / entry / entry.S
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Common place for both 32- and 64-bit entry routines.
4  */
5
6 #include <linux/linkage.h>
7 #include <asm/export.h>
8 #include <asm/msr-index.h>
9
10 .pushsection .noinstr.text, "ax"
11
12 SYM_FUNC_START(entry_ibpb)
13         movl    $MSR_IA32_PRED_CMD, %ecx
14         movl    $PRED_CMD_IBPB, %eax
15         xorl    %edx, %edx
16         wrmsr
17         RET
18 SYM_FUNC_END(entry_ibpb)
19 /* For KVM */
20 EXPORT_SYMBOL_GPL(entry_ibpb);
21
22 .popsection