mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 13:53:41 +00:00
[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:
parent
9fe829874b
commit
bad53bf847
1 changed files with 13 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue