summaryrefslogtreecommitdiffhomepage
path: root/dev/zka/src/ACPIFactoryInterface.cc
diff options
context:
space:
mode:
authorAmlal <amlal@el-mahrouss-logic.com>2024-10-23 10:08:05 +0200
committerAmlal <amlal@el-mahrouss-logic.com>2024-10-23 10:08:05 +0200
commit08e69a55cfda4722277d16ddb632669edde3580b (patch)
treec84511296c0a8d290673df8ffaa52ef75a65a877 /dev/zka/src/ACPIFactoryInterface.cc
parent1742d940e54696432459b8ced18b99bcafeb2178 (diff)
IMP: Process scheduler timer interrupt have been implemented, fixes regarding interrupt API and use __TOOLCHAINKIT__ instead of __NDK__
Signed-off-by: Amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'dev/zka/src/ACPIFactoryInterface.cc')
-rw-r--r--dev/zka/src/ACPIFactoryInterface.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/dev/zka/src/ACPIFactoryInterface.cc b/dev/zka/src/ACPIFactoryInterface.cc
index c7d2914f..230b6ed6 100644
--- a/dev/zka/src/ACPIFactoryInterface.cc
+++ b/dev/zka/src/ACPIFactoryInterface.cc
@@ -29,11 +29,11 @@ namespace Kernel
RSDT* xsdt = reinterpret_cast<RSDT*>(rsp_ptr->RsdtAddress);
- Int64 num = (xsdt->Length - sizeof(SDT)) / sizeof(UInt32);
+ Int64 num = (xsdt->Length - sizeof(SDT)) / sizeof(Int64);
/***
- crucial to avoid - overflows.
- */
+ crucial to avoid underflows.
+ */
if (num < 1)
{
/// stop here, we should have entries...
@@ -64,7 +64,8 @@ namespace Kernel
if (signature_index == (cAcpiSignatureLength - 1))
{
- kcout << "ACPI: Found the SDT" << endl;
+ kcout << "ACPI: SDT Signature: " << sdt->Signature << endl;
+ kcout << "ACPI: SDT OEM ID: " << sdt->OemId << endl;
return ErrorOr<voidPtr>(reinterpret_cast<voidPtr>(xsdt->AddressArr[index]));
}
}
@@ -74,10 +75,10 @@ namespace Kernel
}
/***
- @brief check SDT header
+ @brief Checksum on SDT header.
@param checksum the header to checksum
@param len the length of it.
-*/
+ */
bool ACPIFactoryInterface::Checksum(const Char* checksum, SSizeT len)
{
if (len == 0)