git: 1e07e20d96d9 - stable/12 - loader.efi: print ImageBase so we know where we are

From: Kyle Evans <kevans_at_FreeBSD.org>
Date: Fri, 08 Oct 2021 01:16:26 UTC
The branch stable/12 has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=1e07e20d96d98d10b04d2d09345f091dda0e7761

commit 1e07e20d96d98d10b04d2d09345f091dda0e7761
Author:     Toomas Soome <tsoome@FreeBSD.org>
AuthorDate: 2019-12-06 09:50:29 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2021-10-08 01:15:58 +0000

    loader.efi: print ImageBase so we know where we are
    
    Output a bit of debugging aid.
    
    (cherry picked from commit fed13eb3e8d6091dcfae45e7652835d519306abe)
---
 stand/efi/loader/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c
index a2fba0c57184..95a00d72b6a4 100644
--- a/stand/efi/loader/main.c
+++ b/stand/efi/loader/main.c
@@ -1014,6 +1014,7 @@ main(int argc, CHAR16 *argv[])
 		printf(" %S", argv[i]);
 	printf("\n");
 
+	printf("   Image base: 0x%lx\n", (unsigned long)boot_img->ImageBase);
 	printf("   EFI version: %d.%02d\n", ST->Hdr.Revision >> 16,
 	    ST->Hdr.Revision & 0xffff);
 	printf("   EFI Firmware: %S (rev %d.%02d)\n", ST->FirmwareVendor,