summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel
diff options
context:
space:
mode:
authorAmlal <amlal.elmahrouss@icloud.com>2025-02-21 18:23:44 +0100
committerAmlal <amlal.elmahrouss@icloud.com>2025-02-21 18:23:44 +0100
commit78e6bd9e58ecca16f5631d438aef3f941e266532 (patch)
tree69fdb2505b3e884283a3e91894d1501ea1efc5b0 /dev/Kernel
parentef2d63e0052f425f004300590b007b795f7ad778 (diff)
ADD: Explicit types instead of auto.
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel')
-rw-r--r--dev/Kernel/HALKit/AMD64/Storage/AHCI.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/Kernel/HALKit/AMD64/Storage/AHCI.cc b/dev/Kernel/HALKit/AMD64/Storage/AHCI.cc
index 890e787f..9aaa949e 100644
--- a/dev/Kernel/HALKit/AMD64/Storage/AHCI.cc
+++ b/dev/Kernel/HALKit/AMD64/Storage/AHCI.cc
@@ -98,7 +98,7 @@ STATIC Int32 drv_find_cmd_slot(HbaPort* port) noexcept
template <BOOL Write, BOOL CommandOrCTRL, BOOL Identify>
STATIC Void drv_std_input_output(UInt64 lba, UInt8* buffer, SizeT sector_sz, SizeT size_buffer) noexcept
{
- auto slot = 0L;
+ UIntPtr slot = 0UL;
slot = drv_find_cmd_slot(&kSATA->Ports[kSATAIndex]);
@@ -119,7 +119,7 @@ STATIC Void drv_std_input_output(UInt64 lba, UInt8* buffer, SizeT sector_sz, Siz
MUST_PASS(command_table);
- auto buffer_phys = HAL::hal_get_phys_address(buffer);
+ UIntPtr buffer_phys = HAL::hal_get_phys_address(buffer);
command_table->Prdt[0].Dba = ((UInt32)(UInt64)buffer_phys & __UINT32_MAX__);
command_table->Prdt[0].Dbau = (((UInt64)(buffer_phys) >> 32) & __UINT32_MAX__);