From f329a17e447f12ec099f8a00fd05c055672fc451 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 12 Jul 2024 09:30:25 +0200 Subject: [IMP] Better documentation in BootMain.cxx Signed-off-by: Amlal El Mahrouss --- Boot/Sources/HEL/AMD64/BootMain.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Boot/Sources/HEL/AMD64/BootMain.cxx b/Boot/Sources/HEL/AMD64/BootMain.cxx index 76a35843..13c887ff 100644 --- a/Boot/Sources/HEL/AMD64/BootMain.cxx +++ b/Boot/Sources/HEL/AMD64/BootMain.cxx @@ -137,9 +137,13 @@ EFI_EXTERN_C EFI_API Int Main(EfiHandlePtr ImageHandle, } } + // Fill handover header now. + handoverHdrPtr->f_Magic = kHandoverMagic; handoverHdrPtr->f_Version = kHandoverVersion; + // Provide fimware vendor name. + BCopyMem(handoverHdrPtr->f_FirmwareVendorName, SystemTable->FirmwareVendor, handoverHdrPtr->f_FirmwareVendorLen); @@ -150,10 +154,12 @@ EFI_EXTERN_C EFI_API Int Main(EfiHandlePtr ImageHandle, handoverHdrPtr->f_GOP.f_PixelFormat = kGop->Mode->Info->PixelFormat; handoverHdrPtr->f_GOP.f_Size = kGop->Mode->FrameBufferSize; - ///! Finally draw bootloader screen. + // Assign to global 'kHandoverHeader'. kHandoverHeader = handoverHdrPtr; + // Start drawing the 'zka' icon. + CGInit(); CGDrawInRegion(cCGClearClr, handoverHdrPtr->f_GOP.f_Height, -- cgit v1.2.3