diff options
Diffstat (limited to 'Private/NewBoot/Source/FileReader.cxx')
| -rw-r--r-- | Private/NewBoot/Source/FileReader.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Private/NewBoot/Source/FileReader.cxx b/Private/NewBoot/Source/FileReader.cxx index d81248ea..6696a1b4 100644 --- a/Private/NewBoot/Source/FileReader.cxx +++ b/Private/NewBoot/Source/FileReader.cxx @@ -99,6 +99,8 @@ BFileReader::~BFileReader() { BSetMem(this->mPath, 0, kPathLen); } +#define hTransferBufferAddress 0xffffffff10000000 + /** @brief this reads all of the buffer. @param ImageHandle used internally. @@ -107,7 +109,7 @@ Void BFileReader::ReadAll() { /// Allocate Handover page. if (mBlob == nullptr) { - UInt8* blob = (UInt8*)kHandoverStartKernel; + UInt8* blob = (UInt8*)hTransferBufferAddress; if (BS->AllocatePages(AllocateAnyPages, EfiLoaderData, 1, (EfiPhysicalAddress*)&blob) != kEfiOk) { |
