diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-08 17:30:36 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-08 17:30:36 +0100 |
| commit | 5bf99218f0cad958868e662cf99192811060f95f (patch) | |
| tree | a774b17f37eae5b86595868beca077965897d56e | |
| parent | 46b749045670ce74ce06c51334946e0e90837c18 (diff) | |
KernelMain: Make source code more readable.
| -rw-r--r-- | Private/HALKit/AMD64/HalKernelMain.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Private/HALKit/AMD64/HalKernelMain.cxx b/Private/HALKit/AMD64/HalKernelMain.cxx index 2cfd0d01..6e752e99 100644 --- a/Private/HALKit/AMD64/HalKernelMain.cxx +++ b/Private/HALKit/AMD64/HalKernelMain.cxx @@ -74,12 +74,12 @@ EXTERN_C void RuntimeMain( gdtBase.Base = (HCore::UIntPtr)&GDT; gdtBase.Limit = sizeof(Detail::HC_GDT) - 1; - /// load gdt and far jump to rax. + /// Load GDT. HCore::HAL::GDTLoader gdt; gdt.Load(gdtBase); - /// load idt buffer + /// Load IDT. HCore::HAL::Register64 idtBase; idtBase.Base = (HCore::UIntPtr)kInterruptVectorTable; @@ -89,7 +89,11 @@ EXTERN_C void RuntimeMain( idt.Load(idtBase); KeInitRsrc(); - KeDrawRsrc(MahroussLogic, MAHROUSSLOGIC_HEIGHT, MAHROUSSLOGIC_WIDTH, ((kHandoverHeader->f_GOP.f_Width - MAHROUSSLOGIC_WIDTH) / 2), ((kHandoverHeader->f_GOP.f_Height - MAHROUSSLOGIC_HEIGHT) / 2)); + + KeDrawRsrc(MahroussLogic, MAHROUSSLOGIC_HEIGHT, MAHROUSSLOGIC_WIDTH, + ((kHandoverHeader->f_GOP.f_Width - MAHROUSSLOGIC_WIDTH) / 2), + ((kHandoverHeader->f_GOP.f_Height - MAHROUSSLOGIC_HEIGHT) / 2)); + KeClearRsrc(); /// START POST |
