Skip to content

Commit bad53bf

Browse files
authored
[FREELDR] Fix UEFI boot after FreeLoader split (reactos#8069)
Add missing initialization of the module list and boot devices. This makes UEFI boot work again after reactos#7488 merge. CORE-11954
1 parent 9fe8298 commit bad53bf

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

boot/freeldr/freeldr/arch/uefi/uefildr.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,19 @@ EfiEntry(
5757
/* Initialize I/O subsystem */
5858
FsInit();
5959

60+
/* Initialize the module list */
61+
if (!PeLdrInitializeModuleList())
62+
{
63+
UiMessageBoxCritical("Unable to initialize module list.");
64+
goto Quit;
65+
}
66+
67+
if (!MachInitializeBootDevices())
68+
{
69+
UiMessageBoxCritical("Error when detecting hardware.");
70+
goto Quit;
71+
}
72+
6073
/* 0x32000 is what UEFI defines, but we can go smaller if we want */
6174
BasicStack = (PVOID)((ULONG_PTR)0x32000 + (ULONG_PTR)MmAllocateMemoryWithType(0x32000, LoaderOsloaderStack));
6275
_changestack();

0 commit comments

Comments
 (0)