summaryrefslogtreecommitdiff
path: root/include/efi_loader.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2025-01-17 01:09:51 +0100
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2025-01-26 11:06:56 +0100
commit9f00d38ce7600a162e37156ee6d5a050857a3a9f (patch)
tree8524f62ab3d9736d9c79aadff0bb2383952bd40f /include/efi_loader.h
parent292278d6828e6c8c6ae11bc8658586d1acc411d4 (diff)
efi_loader: correct logging StartImage()
When logging running an image, e.g. `bootefi hello` the indent is not correctly reset. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r--include/efi_loader.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index 0d858c1e12e..5bf271afaad 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -245,6 +245,18 @@ const char *__efi_nesting_dec(void);
_r; \
})
+/**
+ * define EFI_RETURN() - return from EFI_CALL in efi_start_image()
+ *
+ * @ret: status code
+ */
+#define EFI_RETURN(ret) ({ \
+ typeof(ret) _r = ret; \
+ assert(__efi_entry_check()); \
+ debug("%sEFI: %lu returned by started image", __efi_nesting_dec(), \
+ (unsigned long)((uintptr_t)_r & ~EFI_ERROR_MASK)); \
+})
+
/*
* Call void UEFI function from u-boot:
*/