Skip to content

Commit

Permalink
ahh
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Oct 14, 2023
1 parent 1183e79 commit 8dbf186
Show file tree
Hide file tree
Showing 23 changed files with 1,811 additions and 782 deletions.
785 changes: 784 additions & 1 deletion boot/freeldr/freeldr/arch/uefi/uefihw.c

Large diffs are not rendered by default.

16 changes: 2 additions & 14 deletions boot/freeldr/freeldr/arch/uefi/uefiutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,8 @@ extern EFI_SYSTEM_TABLE *GlobalSystemTable;
TIMEINFO*
UefiGetTime(VOID)
{
static TIMEINFO TimeInfo;
EFI_STATUS Status;
EFI_TIME time = {0};

Status = GlobalSystemTable->RuntimeServices->GetTime(&time, NULL);
if (Status != EFI_SUCCESS)
ERR("UefiGetTime: cannot get time status %d\n", Status);

TimeInfo.Year = time.Year;
TimeInfo.Month = time.Month;
TimeInfo.Day = time.Day;
TimeInfo.Hour = time.Hour;
TimeInfo.Minute = time.Minute;
TimeInfo.Second = time.Second;
static TIMEINFO TimeInfo = {0};

return &TimeInfo;
}

13 changes: 13 additions & 0 deletions boot/freeldr/freeldr/ntldr/winldr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,10 @@ LoadAndBootWindows(
BootPath);
}

#ifdef UEFIBOOT
extern REACTOS_INTERNAL_BGCONTEXT framebufferData;
#endif

ARC_STATUS
LoadAndBootWindowsCommon(
IN USHORT OperatingSystemVersion,
Expand Down Expand Up @@ -1197,6 +1201,15 @@ LoadAndBootWindowsCommon(
/* Cleanup INI file */
IniCleanup();

#ifdef UEFIBOOT
LoaderBlock->BaseAddress = framebufferData.BaseAddress ;
LoaderBlock->BufferSize = framebufferData.BufferSize ;
LoaderBlock->ScreenWidth = framebufferData.ScreenWidth ;
LoaderBlock->ScreenHeight = framebufferData.ScreenHeight ;
LoaderBlock->PixelsPerScanLine = framebufferData.PixelsPerScanLine ;
LoaderBlock->PixelFormat = framebufferData.PixelFormat ;
#endif

/****
**** WE HAVE NOW REACHED THE POINT OF NO RETURN !!
****/
Expand Down
1 change: 1 addition & 0 deletions drivers/base/bootvid/bootvid.spec
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
@ stdcall VidSetScrollRegion(long long long long)
@ stdcall VidSetTextColor(long)
@ stdcall VidSolidColorFill(long long long long long)
@ stdcall VidSetupUefi(ptr)
Loading

0 comments on commit 8dbf186

Please sign in to comment.