diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-05 15:21:26 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-05 15:21:47 +0100 |
| commit | b3666c011a512d7758a8c095872241e8f3964850 (patch) | |
| tree | fedd546a3179a9ee5cd2c498cf905559eb417b9a /Private/NewBoot/Source | |
| parent | 81144dd05a7c01701c3bf7b04e345dccfef2bf82 (diff) | |
HCR-11: See below;
Bootloader:
- Fix BFileReader on UEFI.
Kernel:
- Improve The scheduler and SMP manager.
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/NewBoot/Source')
| -rw-r--r-- | Private/NewBoot/Source/FileReader.cxx | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/Private/NewBoot/Source/FileReader.cxx b/Private/NewBoot/Source/FileReader.cxx index a18c5093..8ee59237 100644 --- a/Private/NewBoot/Source/FileReader.cxx +++ b/Private/NewBoot/Source/FileReader.cxx @@ -110,21 +110,6 @@ Void BFileReader::ReadAll(EfiHandlePtr ImageHandle) { /// File FAT info. - UInt32 szInfo = sizeof(EfiFileInfo); - EfiFileInfo* info = nullptr; - - BS->AllocatePool(EfiLoaderData, szInfo, (void**)&info); - - guidEfp = EfiGUID(EFI_FILE_INFO_GUID); - - if (kernelFile->GetInfo(kernelFile, &guidEfp, &szInfo, info) != kEfiOk) { - mWriter.WriteString(L"HCoreLdr: Fetch-Protocol: No-Such-Path: ") - .WriteString(mPath) - .WriteString(L"\r\n"); - this->mErrorCode = kNotSupported; - return; - } - /// Allocate Handover page. VoidPtr blob = (VoidPtr)kHandoverStartKernel; @@ -134,12 +119,16 @@ Void BFileReader::ReadAll(EfiHandlePtr ImageHandle) { EFI::RaiseHardError(L"HCoreLdr_PageError", L"Allocation error."); } - mSizeFile = info->FileSize; + mSizeFile = KIB(kMaxReadSize); mFile = kernelFile; mErrorCode = kOperationOkay; mBlob = blob; - this->File()->Read(this->File(), &mSizeFile, this->Blob()); + mWriter.WriteString(L"HCoreLdr: ReadAll: FETCH: ") + .WriteString(mPath) + .WriteString(L"\r\n"); + + mFile->Read(mFile, &mSizeFile, mBlob); mWriter.WriteString(L"HCoreLdr: ReadAll: OK: ") .WriteString(mPath) |
