From 216b2f35b38b582a930948fca76c272e424c9d96 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 4 Apr 2025 07:56:52 +0200 Subject: kernel, storage: important patches done to AHCI, PIO, PagingMgr, and DMA. Signed-off-by: Amlal El Mahrouss --- dev/kernel/HALKit/AMD64/HalPagingMgrAMD64.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dev/kernel/HALKit/AMD64/HalPagingMgrAMD64.cc') diff --git a/dev/kernel/HALKit/AMD64/HalPagingMgrAMD64.cc b/dev/kernel/HALKit/AMD64/HalPagingMgrAMD64.cc index 63796393..6a9a89b7 100644 --- a/dev/kernel/HALKit/AMD64/HalPagingMgrAMD64.cc +++ b/dev/kernel/HALKit/AMD64/HalPagingMgrAMD64.cc @@ -91,7 +91,7 @@ namespace Kernel::HAL // Lastly, grab the pte entry. NE_PDE* pde_struct = reinterpret_cast(pt_base); - return pde_struct->fEntries[pt_index]->PhysicalAddress; + return pde_struct->fEntries[pt_entry]->PhysicalAddress; } /***********************************************************************************/ -- cgit v1.2.3