#include <linux/linkage.h>
#include <asm/segment.h>
#include <asm/page_types.h>
+#include <asm/nospec-branch.h>
# Copyright 2003, 2008 Pavel Machek <pavel@suse.cz
# jump to place where we left off
movl saved_eip, %eax
+ ANNOTATE_RETPOLINE_SAFE
jmp *%eax
SYM_CODE_END(wakeup_pmode_return)
#include <asm/bootparam.h>
#include <asm/export.h>
#include <asm/pgtable_32.h>
+#include <asm/nospec-branch.h>
/* Physical address */
#define pa(X) ((X) - __PAGE_OFFSET)
#include <asm/realmode.h>
#include <asm/x86_init.h>
#include <asm/efi.h>
+#include <asm/nospec-branch.h>
/*
* Power off function, if any
/* Jump to the identity-mapped low memory code */
#ifdef CONFIG_X86_32
- asm volatile("jmpl *%0" : :
+ asm volatile(ANNOTATE_RETPOLINE_SAFE "jmpl *%0" : :
"rm" (real_mode_header->machine_real_restart_asm),
"a" (type));
#else
- asm volatile("ljmpl *%0" : :
+ asm volatile(ANNOTATE_RETPOLINE_SAFE "ljmpl *%0" : :
"m" (real_mode_header->machine_real_restart_asm),
"D" (type));
#endif
#include <asm/kexec.h>
#include <asm/nospec-branch.h>
#include <asm/processor-flags.h>
+#include <asm/nospec-branch.h>
/*
* Must be relocatable PIC code callable as a C function, in particular
#include <linux/linkage.h>
#include <asm/segment.h>
#include <asm/page_types.h>
+#include <asm/nospec-branch.h>
#include "realmode.h"
.text
.section ".text32","ax"
.code32
SYM_CODE_START(startup_32) # note: also used from wakeup_asm.S
+ ANNOTATE_RETPOLINE_SAFE
jmp *%eax
SYM_CODE_END(startup_32)