From 777297f15692e75b171bc6a82da67f903892561e Mon Sep 17 00:00:00 2001 From: "Ying-Chun Liu (PaulLiu)" Date: Wed, 30 Jul 2025 06:13:44 +0100 Subject: [PATCH] lib: uefi: uefi.cpp: set vendor string of SystemTable Setting the vendor string makes us easier for testing the SystemTablePointer. When we discover SystemTable we can check if the vendor string is set with proper value. Signed-off-by: Ying-Chun Liu (PaulLiu) --- lib/uefi/uefi.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/uefi/uefi.cpp b/lib/uefi/uefi.cpp index 6d4ed608..d5a9cee7 100644 --- a/lib/uefi/uefi.cpp +++ b/lib/uefi/uefi.cpp @@ -63,6 +63,8 @@ void fill(T *data, size_t skip, uint8_t begin = 0) { } } +static char16_t firmwareVendor[] = u"Little Kernel"; + int load_sections_and_execute(bdev_t *dev, const IMAGE_NT_HEADERS64 *pe_header) { const auto file_header = &pe_header->FileHeader; @@ -118,6 +120,7 @@ int load_sections_and_execute(bdev_t *dev, fill(&boot_service, 0); setup_runtime_service_table(&runtime_service); setup_boot_service_table(&boot_service); + table.firmware_vendor = firmwareVendor; table.runtime_service = &runtime_service; table.boot_services = &boot_service; table.header.signature = EFI_SYSTEM_TABLE_SIGNATURE;