[FREELDR] Fix UEFI boot after FreeLoader split (#8069)

Add missing initialization of the module list and boot devices.
This makes UEFI boot work again after #7488 merge.

CORE-11954
This commit is contained in:
Daniel Victor 2025-06-02 07:42:49 -03:00 committed by GitHub
parent 9fe829874b
commit bad53bf847
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,6 +57,19 @@ EfiEntry(
/* Initialize I/O subsystem */
FsInit();
/* Initialize the module list */
if (!PeLdrInitializeModuleList())
{
UiMessageBoxCritical("Unable to initialize module list.");
goto Quit;
}
if (!MachInitializeBootDevices())
{
UiMessageBoxCritical("Error when detecting hardware.");
goto Quit;
}
/* 0x32000 is what UEFI defines, but we can go smaller if we want */
BasicStack = (PVOID)((ULONG_PTR)0x32000 + (ULONG_PTR)MmAllocateMemoryWithType(0x32000, LoaderOsloaderStack));
_changestack();