summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/HALKit/AMD64/HalPagingMgrAMD64.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-01-31 19:05:36 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-01-31 19:05:36 +0100
commitd0c7a3e05a1bb5c9cffd1a0946e403d3a8e37e63 (patch)
tree686f7f3c99a08a7bebfc925839f0f9d882177c54 /dev/Kernel/HALKit/AMD64/HalPagingMgrAMD64.cc
parent9c1e80e1bb3a8d549a9053f0d7bf4afb0c806f80 (diff)
Match the changes in OpenNE, (without reusing it)
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/HALKit/AMD64/HalPagingMgrAMD64.cc')
-rw-r--r--dev/Kernel/HALKit/AMD64/HalPagingMgrAMD64.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/dev/Kernel/HALKit/AMD64/HalPagingMgrAMD64.cc b/dev/Kernel/HALKit/AMD64/HalPagingMgrAMD64.cc
index 97bf07f8..149fdceb 100644
--- a/dev/Kernel/HALKit/AMD64/HalPagingMgrAMD64.cc
+++ b/dev/Kernel/HALKit/AMD64/HalPagingMgrAMD64.cc
@@ -17,7 +17,7 @@ namespace Kernel::HAL
/***********************************************************************************/
/// \brief Page store type.
/***********************************************************************************/
- struct ZKA_PAGE_STORE final
+ struct NE_PAGE_STORE final
{
struct
{
@@ -43,9 +43,9 @@ namespace Kernel::HAL
return pte && pte->User;
}
- static ZKA_PAGE_STORE& The()
+ static NE_PAGE_STORE& The()
{
- static ZKA_PAGE_STORE the;
+ static NE_PAGE_STORE the;
return the;
}
};
@@ -62,7 +62,7 @@ namespace Kernel::HAL
kcout << (pte->User ? "User" : "Not User") << endl;
}
- STATIC Int32 mmi_map_page_table_entry(VoidPtr virtual_address, UInt32 flags, ZKA_PTE* pt_entry, ZKA_PDE* pd_entry);
+ STATIC Int32 mmi_map_page_table_entry(VoidPtr virtual_address, UInt32 flags, NE_PTE* pt_entry, NE_PDE* pd_entry);
/***********************************************************************************/
/// @brief Maps or allocates a page from virtual_address.
@@ -83,7 +83,7 @@ namespace Kernel::HAL
UInt64 cr3 = (UInt64)hal_read_cr3();
- ZKA_PAGE_STORE& page_store = ZKA_PAGE_STORE::The();
+ NE_PAGE_STORE& page_store = NE_PAGE_STORE::The();
// Extract the indices from the virtual address
UInt64 pml4_index = ((UIntPtr)virtual_address >> 39) & cPmlIndexMask;
@@ -118,7 +118,7 @@ namespace Kernel::HAL
UInt64 pt_entry = (pt_base + pt_index * cPmlEntrySize);
// Lastly, grab the pte entry.
- ZKA_PDE* pde_struct = reinterpret_cast<ZKA_PDE*>(pt_base);
+ NE_PDE* pde_struct = reinterpret_cast<NE_PDE*>(pt_base);
return mmi_map_page_table_entry(virtual_address, flags, pde_struct->fEntries[pt_entry], pde_struct);
}
@@ -127,7 +127,7 @@ namespace Kernel::HAL
/// @brief Maps flags for a specific pte.
/// @internal Internal function.
/***********************************************************************************/
- STATIC Int32 mmi_map_page_table_entry(VoidPtr virtual_address, UInt32 flags, ZKA_PTE* pt_entry, ZKA_PDE* pd_entry)
+ STATIC Int32 mmi_map_page_table_entry(VoidPtr virtual_address, UInt32 flags, NE_PTE* pt_entry, NE_PDE* pd_entry)
{
if (!pt_entry)
return 1;
@@ -153,7 +153,7 @@ namespace Kernel::HAL
mmi_page_status(pt_entry);
- ZKA_PAGE_STORE& page_store = ZKA_PAGE_STORE::The();
+ NE_PAGE_STORE& page_store = NE_PAGE_STORE::The();
// Update Internal store.