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) <paulliu@debian.org>
This commit is contained in:
committed by
Kelvin Zhang
parent
7c23aac677
commit
777297f156
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user