Re: [PATCH 2/6] arm/efi: Allow invocation of arbitrary runtime services [ver #2]
From: David Howells
Date: Wed Nov 23 2016 - 07:00:20 EST
Ard Biesheuvel <ard.biesheuvel@xxxxxxxxxx> wrote:
> > What I've changed the ARM and ARM64 things to is:
> >
> > #define efi_call_runtime(f, ...) ((efi_##f##_t *)sys_table_arg->runtime->f)(__VA_ARGS__)
> >
>
> Could we please instead fix the definition of efi_runtime_services_t,
> given that we have typedefs already for all its members?
Okay, I've pulled in your patch and removed the cast.
I would like to provide wrapper static inlines for things like
efi_get_variable() to get the parameter checking, but the sys_table_arg
behind-the-scenes parameter is tricky to deal with in that case.
David