diff options
| author | Amlal <amlal@el-mahrouss-logic.com> | 2024-09-10 18:42:15 +0200 |
|---|---|---|
| committer | Amlal <amlal@el-mahrouss-logic.com> | 2024-09-10 18:42:15 +0200 |
| commit | 408f58b0ef54f49d894023d6753f8d27d0bfd46d (patch) | |
| tree | e3a963519dc4e5f4d6966e5b0c597be622dca76e /dev/ZBA | |
| parent | 5aef44da0ce752e7ac6bd9c95489942b1a0319ae (diff) | |
[ IMP ] Repository bump.
Signed-off-by: Amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'dev/ZBA')
| -rw-r--r-- | dev/ZBA/Sources/HEL/AMD64/BootMain.cxx | 7 | ||||
| -rw-r--r-- | dev/ZBA/Sources/HEL/AMD64/BootTextWriter.cxx | 10 |
2 files changed, 7 insertions, 10 deletions
diff --git a/dev/ZBA/Sources/HEL/AMD64/BootMain.cxx b/dev/ZBA/Sources/HEL/AMD64/BootMain.cxx index 76a82a24..ad454ab4 100644 --- a/dev/ZBA/Sources/HEL/AMD64/BootMain.cxx +++ b/dev/ZBA/Sources/HEL/AMD64/BootMain.cxx @@ -204,7 +204,7 @@ EFI_EXTERN_C EFI_API Int Main(EfiHandlePtr ImageHandle, //-----------------------------------------------------------// handoverHdrPtr->f_PageStart = - (VoidPtr)Descriptor[cDefaultMemoryMap].VirtualStart; + (VoidPtr)Descriptor[cDefaultMemoryMap].PhysicalStart; handoverHdrPtr->f_FirmwareSpecific[HEL::kHandoverSpecificAttrib] = Descriptor[cDefaultMemoryMap].Attribute; @@ -213,10 +213,7 @@ EFI_EXTERN_C EFI_API Int Main(EfiHandlePtr ImageHandle, handoverHdrPtr->f_FirmwareSpecific[HEL::kHandoverSpecificMemoryEfi] = (UIntPtr)Descriptor; - handoverHdrPtr->f_BitMapStart = 0; - - while (BS->AllocatePool(EfiRuntimeServicesData, kHandoverBitMapSz, &handoverHdrPtr->f_BitMapStart) != kEfiOk) - ; + handoverHdrPtr->f_BitMapStart = (VoidPtr)Descriptor[cDefaultMemoryMap].VirtualStart; handoverHdrPtr->f_BitMapSize = kHandoverBitMapSz; /* # of pages */ diff --git a/dev/ZBA/Sources/HEL/AMD64/BootTextWriter.cxx b/dev/ZBA/Sources/HEL/AMD64/BootTextWriter.cxx index d43be468..fdd9eba1 100644 --- a/dev/ZBA/Sources/HEL/AMD64/BootTextWriter.cxx +++ b/dev/ZBA/Sources/HEL/AMD64/BootTextWriter.cxx @@ -135,7 +135,7 @@ BTextWriter& BTextWriter::Write(const Long& x) { #ifdef __DEBUG__ this->_Write(x); - + this->Write("h"); #endif // ifdef __DEBUG__ return *this; @@ -144,14 +144,14 @@ BTextWriter& BTextWriter::Write(const Long& x) BTextWriter& BTextWriter::_Write(const Long& x) { #ifdef __DEBUG__ - UInt64 y = (x > 0 ? x : -x) / 10; - UInt64 h = (x > 0 ? x : -x) % 10; + UInt64 y = (x > 0 ? x : -x) / 16; + UInt64 h = (x > 0 ? x : -x) % 16; if (y) this->_Write(y); /* fail if the hex number is not base-16 */ - if (h > 10) + if (h > 16) { this->WriteCharacter('?'); return *this; @@ -160,7 +160,7 @@ BTextWriter& BTextWriter::_Write(const Long& x) if (y < 0) y = -y; - const char cNumbers[] = "0123456789"; + const char cNumbers[] = "0123456789ABCDEF"; this->WriteCharacter(cNumbers[h]); #endif // ifdef __DEBUG__ |
