]> asedeno.scripts.mit.edu Git - linux.git/commit
x86/alternatives: Add macro comments
authorBorislav Petkov <bp@suse.de>
Mon, 10 Dec 2018 11:21:48 +0000 (12:21 +0100)
committerBorislav Petkov <bp@suse.de>
Wed, 16 Jan 2019 11:40:07 +0000 (12:40 +0100)
commit1c1ed4731cc81942a5b25f284a85257573829b9e
treece2db38caffa432f63294de9b28581596fd7f4d2
parent1c7fc5cbc33980acd13d668f1c8f0313d6ae9fd8
x86/alternatives: Add macro comments

... so that when one stares at the .s output, one can find her way
around the resulting asm magic.

With it, ALTERNATIVE looks like this now:

          # ALT: oldnstr
  661:
          ...
  662:
          # ALT: padding
  .skip ...
  663:
  .pushsection .altinstructions,"a"

  ...

  .popsection
  .pushsection .altinstr_replacement, "ax"
          # ALT: replacement 1
  6641:
   ...
  6651:
          .popsection

Merge __OLDINSTR() into OLDINSTR(), while at it.

No functional changes.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: X86 ML <x86@kernel.org>
Link: https://lkml.kernel.org/r/20181211222326.14581-2-bp@alien8.de
arch/x86/include/asm/alternative.h