mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-16 17:51:46 +00:00
Fix 32-bit compilation
This commit is contained in:
@@ -72,7 +72,7 @@ namespace AdvancedHostControllerInterface
|
||||
this->AHCIPortType = Type;
|
||||
this->HBAPortPtr = PortPtr;
|
||||
this->Buffer = static_cast<uint8_t *>(KAPI.Memory.RequestPage(1));
|
||||
memset(this->Buffer, 0, KAPI.Memory.PageSize);
|
||||
memset(this->Buffer, 0, size_t(KAPI.Memory.PageSize));
|
||||
this->PortNumber = PortNumber;
|
||||
}
|
||||
|
||||
|
@@ -283,7 +283,8 @@ namespace AudioCodec97
|
||||
|
||||
do
|
||||
{
|
||||
size_t Wrote = (KAPI.Memory.PageSize > Length) ? Length : KAPI.Memory.PageSize;
|
||||
size_t Wrote = (KAPI.Memory.PageSize > Length) ? size_t(Length)
|
||||
: size_t(KAPI.Memory.PageSize);
|
||||
|
||||
if (Wrote == 0)
|
||||
break;
|
||||
|
@@ -113,9 +113,14 @@ namespace Gigabit
|
||||
RX[i]->Status = 0;
|
||||
}
|
||||
|
||||
#pragma diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wshift-count-overflow"
|
||||
|
||||
WriteCMD(REG::TXDESCLO, (uint32_t)(Ptr >> 32));
|
||||
WriteCMD(REG::TXDESCHI, (uint32_t)(Ptr & 0xFFFFFFFF));
|
||||
|
||||
#pragma diagnostic pop
|
||||
|
||||
WriteCMD(REG::RXDESCLO, (uint32_t)Ptr);
|
||||
WriteCMD(REG::RXDESCHI, 0);
|
||||
|
||||
|
Reference in New Issue
Block a user