Skip to content

Commit

Permalink
[CODEREVIEW]
Browse files Browse the repository at this point in the history
Co-authored-by: Stanislav Motylkov <[email protected]>
  • Loading branch information
DarkFire01 and binarymaster authored Oct 11, 2023
1 parent a250e95 commit db97f7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions boot/freeldr/freeldr/arch/uefi/uefildr.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ ExecuteLoaderCleanly(PVOID PreviousStack)
VOID __cdecl Reboot(VOID)
{
//TODO: Replace with a true firmware reboot eventually
WARN("Stopping freeloader something has gone wrong - Freezing");
for(;;)
WARN("Something has gone wrong - halting FreeLoader\n");
for (;;)
{
NOTHING;
}
Expand Down
3 changes: 2 additions & 1 deletion boot/freeldr/freeldr/arch/uefi/uefimem.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ UefiMemGetMemoryMap(ULONG *MemoryMapSize)
MapEntry = NEXT_MEMORY_DESCRIPTOR(MapEntry, DescriptorSize);
}

/* Reserve the first page, as on some UEFI systems it can be free */
/* Windows expects the first page to be reserved, otherwise it asserts.
* However it can be just a free page on some UEFI systems. */
UefiSetMemory(FreeldrMem, 0x000000, 1, LoaderFirmwarePermanent);
*MemoryMapSize = FreeldrDescCount;
return FreeldrMem;
Expand Down

0 comments on commit db97f7a

Please sign in to comment.