]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit84eec995cbaaa35c6e624970494f1db0e3f5acd6
tree25155b147f1fd9e812faee8198c117d91dc17ba4
parent9b96ed52f511948a8f5b525423ea869403fe4307
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