Home
last modified time | relevance | path

Searched hist:d8ea2ffd (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/firmware/efi/
H A Driscv-runtime.cd8ea2ffd Tue Aug 08 02:51:58 CDT 2023 Ard Biesheuvel <ardb@kernel.org> 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>
/openbmc/linux/arch/riscv/include/asm/
H A Defi.hd8ea2ffd Tue Aug 08 02:51:58 CDT 2023 Ard Biesheuvel <ardb@kernel.org> 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>