From 65e428a5a2b4eac24cccf5defe64d52faba8304d Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 23 Jun 2024 00:59:10 +0200 Subject: Kernel: See below. MHR-35: Implement it. Kernel: Write EPM header at sector 0. Signed-off-by: Amlal El Mahrouss --- Boot/Sources/HEL/AMD64/BootMain.cxx | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'Boot/Sources') diff --git a/Boot/Sources/HEL/AMD64/BootMain.cxx b/Boot/Sources/HEL/AMD64/BootMain.cxx index 145bdadb..6591f61e 100644 --- a/Boot/Sources/HEL/AMD64/BootMain.cxx +++ b/Boot/Sources/HEL/AMD64/BootMain.cxx @@ -89,21 +89,15 @@ EFI_EXTERN_C EFI_API Int Main(EfiHandlePtr ImageHandle, /// Splash screen stuff writer.Write(L"Zeta Electronics Corporation (R) newosldr: ") - .Write(BVersionString::The()); + .Write(BVersionString::The()).Write("\r"); - if (SystemTable->FirmwareVendor[0] != '\\' || - SystemTable->FirmwareVendor[1] != 'E' || - SystemTable->FirmwareVendor[2] != 'P' || - SystemTable->FirmwareVendor[3] != 'M') - { - writer.Write(L"\rnewosldr: vendor: ") - .Write(SystemTable->FirmwareVendor) - .Write(L" isn't supported.\r"); +#ifndef __DEBUG__ + writer.Write(L"\rnewosldr: AMD64 is only supported in debug mode.\r"); - EFI::Stop(); + EFI::Stop(); - CANT_REACH(); - } + CANT_REACH(); +#endif UInt32* MapKey = new UInt32(); UInt32* SizePtr = new UInt32(); -- cgit v1.2.3