svn commit: r292562 - stable/10/sys/boot/amd64/boot1.efi
Ed Maste
emaste at FreeBSD.org
Mon Dec 21 19:49:02 UTC 2015
Author: emaste
Date: Mon Dec 21 19:49:00 2015
New Revision: 292562
URL: https://svnweb.freebsd.org/changeset/base/292562
Log:
MFC r279738, r281307: boot1.efi: add error reporting
Sponsored by: The FreeBSD Foundation
Modified:
stable/10/sys/boot/amd64/boot1.efi/boot1.c
Directory Properties:
stable/10/ (props changed)
stable/10/sys/gnu/dts/ (props changed)
Modified: stable/10/sys/boot/amd64/boot1.efi/boot1.c
==============================================================================
--- stable/10/sys/boot/amd64/boot1.efi/boot1.c Mon Dec 21 19:40:32 2015 (r292561)
+++ stable/10/sys/boot/amd64/boot1.efi/boot1.c Mon Dec 21 19:49:00 2015 (r292562)
@@ -307,12 +307,19 @@ load(const char *fname)
/* XXX: For secure boot, we need our own loader here */
status = systab->BootServices->LoadImage(TRUE, image, bootdevpath,
buffer, bufsize, &loaderhandle);
+ if (EFI_ERROR(status))
+ printf("LoadImage failed with error %lx\n", status);
status = systab->BootServices->HandleProtocol(loaderhandle,
&LoadedImageGUID, (VOID**)&loaded_image);
+ if (EFI_ERROR(status))
+ printf("HandleProtocol failed with error %lx\n", status);
+
loaded_image->DeviceHandle = bootdevhandle;
status = systab->BootServices->StartImage(loaderhandle, NULL, NULL);
+ if (EFI_ERROR(status))
+ printf("StartImage failed with error %lx\n", status);
}
static void
More information about the svn-src-stable-10
mailing list