Skip to content
Commit c7c7bce0 authored by Ard Biesheuvel's avatar Ard Biesheuvel
Browse files

efi/runtime-wrappers: Use type safe encapsulation of call arguments



The current code that marshalls the EFI runtime call arguments to hand
them off to a async helper does so in a type unsafe and slightly messy
manner - everything is cast to void* except for some integral types that
are passed by reference and dereferenced on the receiver end.

Let's clean this up a bit, and record the arguments of each runtime
service invocation exactly as they are issued, in a manner that permits
the compiler to check the types of the arguments at both ends.

Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent d8ea2ffd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment