]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/x86/include/asm/alternative-asm.h
x86/nospec, objtool: Introduce ANNOTATE_IGNORE_ALTERNATIVE
[linux.git] / arch / x86 / include / asm / alternative-asm.h
index 31b627b43a8e01933d6209e746f4c08912d0cdef..464034db299f781104da5f05a6a3604320f8d4d7 100644 (file)
        .endm
 #endif
 
+/*
+ * objtool annotation to ignore the alternatives and only consider the original
+ * instruction(s).
+ */
+.macro ANNOTATE_IGNORE_ALTERNATIVE
+       .Lannotate_\@:
+       .pushsection .discard.ignore_alts
+       .long .Lannotate_\@ - .
+       .popsection
+.endm
+
 /*
  * Issue one struct alt_instr descriptor entry (need to put it into
  * the section .altinstructions, see below). This entry contains