OSDN Git Service

efi/riscv: Move EFI runtime call setup/teardown helpers out of line
authorArd Biesheuvel <ardb@kernel.org>
Tue, 8 Aug 2023 07:51:58 +0000 (09:51 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Mon, 21 Aug 2023 15:59:25 +0000 (17:59 +0200)
commitd8ea2ffd017d0608635c0ec7bc9ba39edbbd2482
tree23868349551f298b9ab187925778a73858e1b882
parentc37ce23591b14545f7c8b09e167b995f8acdda71
efi/riscv: Move EFI runtime call setup/teardown helpers out of line

Only the arch_efi_call_virt() macro that some architectures override
needs to be a macro, given that it is variadic and encapsulates calls
via function pointers that have different prototypes.

The associated setup and teardown code are not special in this regard,
and don't need to be instantiated at each call site. So turn them into
ordinary C functions and move them out of line.

Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/riscv/include/asm/efi.h
drivers/firmware/efi/riscv-runtime.c