efi_loader: clean up UEFI sub-system initialization
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 4 May 2019 09:47:48 +0000 (11:47 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 7 May 2019 19:10:03 +0000 (21:10 +0200)
commit52cbac9b06bf247dda8ff261b15e3c13f88188db
tree8e6cb4e6d687c637209ec86ee297d3d86f6dac24
parent44237e272f1eac3b026709e76333a07b2d3a3523
efi_loader: clean up UEFI sub-system initialization

allow_unaligned(), switch_to_non_secure_mode(), and efi_init_obj_list() are
called in sequence in multiple places.

Move calls to allow_unaligned() and switch_to_non_secure_mode() to
efi_init_obj_list().

Remove unused includes.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
cmd/bootefi.c
lib/efi_loader/efi_setup.c