[PATCH 2/6] efi_loader: Introduce helper functions for EFI