summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-07-12 09:30:25 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-07-12 09:30:25 +0200
commitf329a17e447f12ec099f8a00fd05c055672fc451 (patch)
treef071c240a0cb4d96ca4b01b482736b543a7784d8
parentc0d80471813628dbedd68f45f14b3b7b85d12f8b (diff)
[IMP] Better documentation in BootMain.cxx
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
-rw-r--r--Boot/Sources/HEL/AMD64/BootMain.cxx8
1 files changed, 7 insertions, 1 deletions
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,