diff options
| author | Warner Losh <imp@FreeBSD.org> | 2026-06-22 22:17:12 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2026-06-22 23:06:15 +0000 |
| commit | e8a3352e8b5784fe3417a367a488159f0ab30ae8 (patch) | |
| tree | 8c26dba263c60d9990c7c2114333c9a36c645784 | |
| parent | 7f5539d6a66471f59de0550f4b8e3369e0b1b2c7 (diff) | |
loader.efi: Fix a comment
Move a comment further up in the file. After the sethead() we need to
use efi_exit(), not after the performance measuring stuff.
Sponsored by: Netflix
| -rw-r--r-- | stand/efi/loader/efi_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stand/efi/loader/efi_main.c b/stand/efi/loader/efi_main.c index 6945c97c1d90..412b893a2c18 100644 --- a/stand/efi/loader/efi_main.c +++ b/stand/efi/loader/efi_main.c @@ -105,11 +105,11 @@ efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *system_table) setheap((void *)(uintptr_t)heap, (void *)(uintptr_t)(heap + heapsize)); + /* Use efi_exit() from here on... */ + /* Start tslog now that we have a heap.*/ tslog_init(); - /* Use efi_exit() from here on... */ - status = OpenProtocolByHandle(IH, &image_protocol, (void**)&img); if (status != EFI_SUCCESS) efi_exit(status); |
