summaryrefslogtreecommitdiffhomepage
path: root/dev/Boot/src
diff options
context:
space:
mode:
authorAmlal <amlal.elmahrouss@icloud.com>2025-02-17 20:35:53 +0100
committerAmlal <amlal.elmahrouss@icloud.com>2025-02-17 20:35:53 +0100
commitbea589553fa9d33168e42bb83b77591fa8a0cad1 (patch)
treec59858647c4cfe94d4c3aff1dde105599d80f52e /dev/Boot/src
parentd3b39ca5bebf73804eae60e021e9083250195dc0 (diff)
ADD: Patch CountL and CountH in AHCI driver.
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Boot/src')
-rw-r--r--dev/Boot/src/HEL/AMD64/BootEFI.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/dev/Boot/src/HEL/AMD64/BootEFI.cc b/dev/Boot/src/HEL/AMD64/BootEFI.cc
index a8dc5561..b3e03f01 100644
--- a/dev/Boot/src/HEL/AMD64/BootEFI.cc
+++ b/dev/Boot/src/HEL/AMD64/BootEFI.cc
@@ -201,6 +201,11 @@ EFI_EXTERN_C EFI_API Int32 Main(EfiHandlePtr image_handle,
while (BS->AllocatePool(EfiLoaderData, handover_hdr->f_BitMapSize, &handover_hdr->f_BitMapStart) != kEfiOk)
{
+ if (handover_hdr->f_BitMapStart)
+ {
+ BS->FreePool(handover_hdr->f_BitMapStart);
+ handover_hdr->f_BitMapStart = nullptr;
+ }
}
handover_hdr->f_FirmwareCustomTables[0] = (VoidPtr)BS;