mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
x86/acpi: Annotate indirect branch as safe
This indirect jump is harmless; annotate it to keep objtool's retpoline validation happy. Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net> Cc: Len Brown <len.brown@intel.com> Cc: Pavel Machek <pavel@ucw.cz> Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Link: https://lore.kernel.org/r/a7288e7043265d95c1a5d64f9fd751ead4854bdc.1611263462.git.jpoimboe@redhat.com
This commit is contained in:
parent
7cae4b1cf1
commit
f83d1a0190
@ -7,6 +7,7 @@
|
||||
#include <asm/msr.h>
|
||||
#include <asm/asm-offsets.h>
|
||||
#include <asm/frame.h>
|
||||
#include <asm/nospec-branch.h>
|
||||
|
||||
# Copyright 2003 Pavel Machek <pavel@suse.cz
|
||||
|
||||
@ -39,6 +40,7 @@ SYM_FUNC_START(wakeup_long64)
|
||||
movq saved_rbp, %rbp
|
||||
|
||||
movq saved_rip, %rax
|
||||
ANNOTATE_RETPOLINE_SAFE
|
||||
jmp *%rax
|
||||
SYM_FUNC_END(wakeup_long64)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user