summaryrefslogtreecommitdiffhomepage
path: root/Private/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Private/Source')
-rw-r--r--Private/Source/KernelHeap.cxx2
-rw-r--r--Private/Source/PageManager.cxx6
2 files changed, 0 insertions, 8 deletions
diff --git a/Private/Source/KernelHeap.cxx b/Private/Source/KernelHeap.cxx
index 358330f0..10d3fdd2 100644
--- a/Private/Source/KernelHeap.cxx
+++ b/Private/Source/KernelHeap.cxx
@@ -9,8 +9,6 @@
#include <NewKit/KernelHeap.hpp>
-#include "KernelKit/DebugOutput.hpp"
-
//! @file KernelHeap.cpp
//! @brief Kernel allocator.
diff --git a/Private/Source/PageManager.cxx b/Private/Source/PageManager.cxx
index c520da78..c801fe07 100644
--- a/Private/Source/PageManager.cxx
+++ b/Private/Source/PageManager.cxx
@@ -41,7 +41,6 @@ PTEWrapper::PTEWrapper(Boolean Rw, Boolean User, Boolean ExecDisable,
PTEWrapper::~PTEWrapper() {
PTE *raw = reinterpret_cast<PTE *>(m_VirtAddr);
- MUST_PASS(raw);
raw->Present = false;
raw->Rw = false;
@@ -78,11 +77,6 @@ PTEWrapper *PageManager::Request(Boolean Rw, Boolean User,
PTEWrapper *PageTableEntry = reinterpret_cast<PTEWrapper *>(
HCore::HAL::hal_alloc_page(sizeof(PTEWrapper), Rw, User));
- if (PageTableEntry == nullptr) {
- kcout << "PTEWrapper : Page table is nullptr!, ke_new_ke_heap failed!\n";
- return nullptr;
- }
-
PageTableEntry->NoExecute(ExecDisable);
*PageTableEntry = PTEWrapper{Rw, User, ExecDisable,