summaryrefslogtreecommitdiff
path: root/stand
diff options
context:
space:
mode:
authorRebecca Cran <bcran@FreeBSD.org>2018-12-13 23:20:58 +0000
committerRebecca Cran <bcran@FreeBSD.org>2018-12-13 23:20:58 +0000
commit974df0a9150289bd973ffc014d41c355edcca9ae (patch)
treeb43af810af72cf6affbba5a6391687fe6abf7420 /stand
parent8ca79fbd4af2570968a92f08fb714d8c1bcb378d (diff)
Notes
Diffstat (limited to 'stand')
-rw-r--r--stand/efi/loader/efi_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/stand/efi/loader/efi_main.c b/stand/efi/loader/efi_main.c
index e424d89666ec9..2260db83b37d1 100644
--- a/stand/efi/loader/efi_main.c
+++ b/stand/efi/loader/efi_main.c
@@ -94,8 +94,10 @@ efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *system_table)
heapsize = 64 * 1024 * 1024;
status = BS->AllocatePages(AllocateAnyPages, EfiLoaderData,
EFI_SIZE_TO_PAGES(heapsize), &heap);
- if (status != EFI_SUCCESS)
+ if (status != EFI_SUCCESS) {
+ ST->ConOut->OutputString(ST->ConOut, L"Failed to allocate memory for heap.\r\n");
BS->Exit(IH, status, 0, NULL);
+ }
setheap((void *)(uintptr_t)heap, (void *)(uintptr_t)(heap + heapsize));