mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-01 18:39:16 +00:00
fix(kernel/efi): 🐛 check if ImageHandle and SystemTable has valid, pointers
This commit is contained in:
@ -194,6 +194,15 @@ namespace Memory
|
||||
#pragma GCC diagnostic pop
|
||||
this->ReservePages(SDTHdr, TO_PAGES(SDTHdr->Length));
|
||||
}
|
||||
|
||||
if (bInfo.EFI.Info.Enabled)
|
||||
{
|
||||
debug("Reserving EFI related...");
|
||||
if (bInfo.EFI.Info.IH)
|
||||
this->ReservePage(bInfo.EFI.ImageHandle);
|
||||
if (bInfo.EFI.Info.ST)
|
||||
this->ReservePage(bInfo.EFI.SystemTable);
|
||||
}
|
||||
}
|
||||
#elif defined(__aarch64__)
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user