From eb4f3414d2ca4ff518481afdd7b391f1c440fa9e Mon Sep 17 00:00:00 2001 From: Amlal Date: Mon, 5 Aug 2024 20:41:52 +0200 Subject: [BUMP] bumping sources. Signed-off-by: Amlal --- Boot/Sources/ProgramLoader.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Boot/Sources/ProgramLoader.cxx') diff --git a/Boot/Sources/ProgramLoader.cxx b/Boot/Sources/ProgramLoader.cxx index bdd54383..3b24d97b 100644 --- a/Boot/Sources/ProgramLoader.cxx +++ b/Boot/Sources/ProgramLoader.cxx @@ -80,13 +80,10 @@ namespace Boot writer.Write("newosldr: offset ").Write(sect->mPointerToRawData).Write(" of ").Write(sect->mName).Write(".\r"); + SetMem((VoidPtr)(loadStartAddress + sect->mVirtualAddress), 0, sect->mSizeOfRawData); CopyMem((VoidPtr)(loadStartAddress + sect->mVirtualAddress), (VoidPtr)((UIntPtr)fBlob + sect->mPointerToRawData), sect->mSizeOfRawData); } - EfiPhysicalAddress start = (EfiPhysicalAddress)fStartAddress; - - BS->AllocatePages(AllocateAddress, EfiLoaderData, 1, &start); - // ================================ // // Allocate stack. // ================================ // -- cgit v1.2.3