On Sat, 23 Nov 2024 at 12:56, Matthew Garrett <mj...@srcf.ucam.org> wrote: > > From: Matthew Garrett <mgarr...@aurora.tech> > > We want to jump into the EFI stub in the kernel so it can perform > appropriate init and call ExitBootServices. Add support for doing that, > including ensuring that we copy the kernel to somewhere that's not > currently being used by the firmware. > > Signed-off-by: Matthew Garrett <mgarr...@aurora.tech> > > --- > > arch/x86/lib/bootm.c | 49 ++++++++++++++++++++++++++++++-------------- > boot/bootm.c | 5 +++++ > include/bootm.h | 6 ++++++ > include/efi.h | 1 + > lib/efi/efi.c | 1 + > lib/efi/efi_app.c | 36 ++++++++++++++++++++++++++++++++ > 6 files changed, 83 insertions(+), 15 deletions(-)
Reviewed-by: Simon Glass <s...@chromium.org>