RISC-V: Inline the assembly register save/restore macros
authorPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 27 Feb 2020 19:15:03 +0000 (11:15 -0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Tue, 3 Mar 2020 18:33:21 +0000 (10:33 -0800)
commitfdff9911f266951b14b20e25557278b5b3f0d90d
tree25155b147f1fd9e812faee8198c117d91dc17ba4
parent52e7c52d2ded5908e6a4f8a7248e5fa6e0d6809a
RISC-V: Inline the assembly register save/restore macros

These are only used once, and when reading the code I've always found them to
be more of a headache than a benefit.  While they were never worth removing
before, LLVM's integrated assembler doesn't support LOCAL so rather that trying
to figure out how to refactor the macros it seems saner to just inline them.

Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/entry.S