From 2a1e69c1fe299d6e2f03cb5ebc78e27de87d0662 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 24 Feb 2024 14:31:57 +0100 Subject: 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 --- Private/NewBoot/Source/BootMain.cxx | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'Private/NewBoot/Source') 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(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 -- cgit v1.2.3