diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-05 10:53:58 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-05 10:53:58 +0100 |
| commit | f8c9b81ff120160af60af6e9d44cba338aceb65a (patch) | |
| tree | cb4683589aab4d50470628f189dc366814fd80ad /Private/NewBoot/BootKit | |
| parent | e03903b98aa0b4d2dc3ed4637863124f28c4e1fe (diff) | |
Kernel: Improved kernel design and Bootloader runs on real hardware!
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/NewBoot/BootKit')
| -rw-r--r-- | Private/NewBoot/BootKit/BootKit.hxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Private/NewBoot/BootKit/BootKit.hxx b/Private/NewBoot/BootKit/BootKit.hxx index 5e0ca135..9a34f568 100644 --- a/Private/NewBoot/BootKit/BootKit.hxx +++ b/Private/NewBoot/BootKit/BootKit.hxx @@ -64,7 +64,7 @@ class BFileReader final { explicit BFileReader(const CharacterType *path); ~BFileReader(); - Void Fetch(EfiHandlePtr ImageHandle); + Void ReadAll(EfiHandlePtr ImageHandle); enum { kOperationOkay, @@ -77,6 +77,8 @@ class BFileReader final { Int32 &Error() { return mErrorCode; } VoidPtr Blob() { return mBlob; } + EfiFileProtocol *File() { return mFile; } + UInt32 &Size() { return mSizeFile; } public: BFileReader &operator=(const BFileReader &) = default; @@ -87,7 +89,8 @@ class BFileReader final { VoidPtr mBlob{nullptr}; CharacterType mPath[kPathLen]; BTextWriter mWriter; - bool mCached{false}; + EfiFileProtocol *mFile{nullptr}; + UInt32 mSizeFile{0}; }; /***********************************************************************************/ @@ -172,7 +175,7 @@ inline Void InitQT() noexcept { for (int y = 0; y < kGop->Mode->Info->HorizontalResolution; ++y) { *((UInt32 *)(kGop->Mode->FrameBufferBase + 4 * kGop->Mode->Info->PixelsPerScanLine * x + kStride * y)) = - RGB(10, 10, 10); + RGB(19, 19, 19); } } } |
