diff options
| author | Marcel Moolenaar <marcel@FreeBSD.org> | 2003-03-01 05:18:28 +0000 |
|---|---|---|
| committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2003-03-01 05:18:28 +0000 |
| commit | 59c9bb54ee9f788e7a3e3c17027f3f770ca200af (patch) | |
| tree | 46c4fd2fe7b9ec9e2f1eca3a1535bfa2aa3c63f6 /sys/boot/efi/loader/main.c | |
| parent | 884d549049e62457a84f5375a2a190d3d2d539b1 (diff) | |
Notes
Diffstat (limited to 'sys/boot/efi/loader/main.c')
| -rw-r--r-- | sys/boot/efi/loader/main.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/boot/efi/loader/main.c b/sys/boot/efi/loader/main.c index 7d138a170217..bc1c044c96eb 100644 --- a/sys/boot/efi/loader/main.c +++ b/sys/boot/efi/loader/main.c @@ -131,12 +131,15 @@ main(int argc, CHAR16 *argv[]) efinet_init_driver(); + + /* Get our loaded image protocol interface structure. */ + BS->HandleProtocol(IH, &imgid, (VOID**)&img); + + printf("Image base: 0x%016lx\n", (u_long)img->ImageBase); + printf("\n"); printf("%s, Revision %s\n", bootprog_name, bootprog_rev); printf("(%s, %s)\n", bootprog_maker, bootprog_date); -#if 0 - printf("Memory: %ld k\n", memsize() / 1024); -#endif /* * XXX quick and dirty check to see if we're loaded from the @@ -144,8 +147,6 @@ main(int argc, CHAR16 *argv[]) * other cases we set the default device to 'disk'. We presume * fixed positions in devsw for both net and disk. */ - BS->HandleProtocol(IH, &imgid, (VOID**)&img); - status = BS->HandleProtocol(img->DeviceHandle, &netid, (VOID**)&net); if (status == EFI_SUCCESS && net != NULL) { currdev.d_dev = devsw[1]; /* XXX net */ |
