diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-24 14:31:57 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-24 14:31:57 +0100 |
| commit | 2a1e69c1fe299d6e2f03cb5ebc78e27de87d0662 (patch) | |
| tree | 6328a1117557ada5c9577b4c90664dfbf59a2dd2 /Private/NewBoot | |
| parent | b842e2d8e09189d527006ca5b3dec58128afe953 (diff) | |
HCR-11 && HCR-14: Work had been done to bring driver support to hcore's
kernel.
- AHCI is the de-facto kernel driver.
- Drivers will be loaded as processes (except the builtin disk driver)
- A GUI subsystem is in progress.
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/NewBoot')
| -rw-r--r-- | Private/NewBoot/Source/BootMain.cxx | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/Private/NewBoot/Source/BootMain.cxx b/Private/NewBoot/Source/BootMain.cxx index 73ca1364..eed6bf60 100644 --- a/Private/NewBoot/Source/BootMain.cxx +++ b/Private/NewBoot/Source/BootMain.cxx @@ -131,8 +131,13 @@ EFI_EXTERN_C EFI_API Int EfiMain(EfiHandlePtr ImageHandle, BS->AllocatePool(EfiLoaderData, sizeof(HEL::HandoverInformationHeader), (VoidPtr*)&handoverHdrPtr); - handoverHdrPtr->f_GOP = (voidPtr)kGop->Mode->FrameBufferBase; - handoverHdrPtr->f_GOPSize = kGop->Mode->FrameBufferSize; + handoverHdrPtr->f_GOP.f_The = kGop->Mode->FrameBufferBase; + handoverHdrPtr->f_GOP.f_Width = kGop->Mode->Info->VerticalResolution; + handoverHdrPtr->f_GOP.f_Height = kGop->Mode->Info->HorizontalResolution; + handoverHdrPtr->f_GOP.f_PixelPerLine = + kGop->Mode->Info->PixelsPerScanLine; + handoverHdrPtr->f_GOP.f_PixelFormat = kGop->Mode->Info->PixelFormat; + handoverHdrPtr->f_GOP.f_Size = kGop->Mode->FrameBufferSize; handoverHdrPtr->f_PhysicalStart = reinterpret_cast<voidPtr>(Descriptor->PhysicalStart); @@ -152,10 +157,16 @@ EFI_EXTERN_C EFI_API Int EfiMain(EfiHandlePtr ImageHandle, handoverHdrPtr->f_FirmwareVendorLen); #ifdef __BUNDLE_KERNEL__ - handoverHdrPtr->f_LiteEdition = true; + handoverHdrPtr->f_Magic = 0x55DDFF; + handoverHdrPtr->f_Version = 0x1011; + handoverHdrPtr->f_Bootloader = 0x11; // HCoreLite + writer.WriteString(L"HCoreLite: Exit Boot...").WriteString(L"\r\n"); #else - handoverHdrPtr->f_LiteEdition = false; + handoverHdrPtr->f_Magic = 0xFF55DD; + handoverHdrPtr->f_Version = 0x1011; + handoverHdrPtr->f_Bootloader = 0xDD; // HCoreLdr + writer.WriteString(L"HCoreLdr: Exit Boot...").WriteString(L"\r\n"); #endif |
