summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Private/FirmwareKit/EFI/API.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Private/FirmwareKit/EFI/API.hxx b/Private/FirmwareKit/EFI/API.hxx
index 0e2ef200..093d10b3 100644
--- a/Private/FirmwareKit/EFI/API.hxx
+++ b/Private/FirmwareKit/EFI/API.hxx
@@ -121,6 +121,13 @@ inline void InitEFI(EfiSystemTable *SystemTable) noexcept {
ST->BootServices->SetWatchdogTimer(0, 0, 0, nullptr);
ST->ConOut->EnableCursor(ST->ConOut, false);
+
+ if (ST->FirmwareVendor[0] != '@' ||
+ ST->FirmwareVendor[1] != 'M' ||
+ ST->FirmwareVendor[1] != 'H' ||
+ ST->FirmwareVendor[1] != 'R') {
+ EFI::ThrowError(L"Unsupported Firmware", L"Firmware is unsupported, please build OVMF by yourself.");
+ }
}
#ifdef __BOOTLOADER__