• Ard Biesheuvel's avatar
    efi/riscv: Move EFI runtime call setup/teardown helpers out of line · d8ea2ffd
    Ard Biesheuvel authored
    
    
    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: default avatarArd Biesheuvel <ardb@kernel.org>
    d8ea2ffd
efi.h 1.12 KB