summaryrefslogtreecommitdiffhomepage
path: root/Kernel/Sources
diff options
context:
space:
mode:
authorAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-06-28 15:38:05 +0200
committerAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-06-28 15:44:12 +0200
commita9b891eb31b874c14fce79f7e3e9da8fab475224 (patch)
tree60c7dc9d822f1ddcdb4550b93db9e9fea49605b3 /Kernel/Sources
parentc142fe6fda7d09e929c9706b444cdc13ed5e72f3 (diff)
IMP: 64X000 newosldr support.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Kernel/Sources')
-rw-r--r--Kernel/Sources/PageManager.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/Kernel/Sources/PageManager.cxx b/Kernel/Sources/PageManager.cxx
index 331be178..413c830f 100644
--- a/Kernel/Sources/PageManager.cxx
+++ b/Kernel/Sources/PageManager.cxx
@@ -10,8 +10,8 @@
#ifdef __NEWOS_AMD64__
#include <HALKit/AMD64/HalPageAlloc.hpp>
#elif defined(__NEWOS_ARM64__)
-#include <HALKit/ARM64/Processor.hxx>
-#endif // ifdef __x86_64__
+#include <HALKit/ARM64/HalPageAlloc.hpp>
+#endif // ifdef __NEWOS_AMD64__ || defined(__NEWOS_ARM64__)
//! null deref will throw (Page Zero detected, aborting app!)
#define kProtectedRegionEnd (512)
@@ -31,13 +31,11 @@ namespace NewOS
{
}
- PTEWrapper::~PTEWrapper()
- {
- }
+ PTEWrapper::~PTEWrapper() = default;
/// @brief Flush virtual address.
/// @param VirtAddr
- void PageManager::FlushTLB(UIntPtr VirtAddr)
+ Void PageManager::FlushTLB(UIntPtr VirtAddr)
{
if (VirtAddr == kBadAddress)
return;
@@ -47,7 +45,7 @@ namespace NewOS
/// @brief Reclaim freed page.
/// @return
- bool PTEWrapper::Reclaim()
+ Bool PTEWrapper::Reclaim()
{
if (!this->fPresent)
{