summaryrefslogtreecommitdiffhomepage
path: root/Private/Source
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-22 11:18:10 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-22 11:20:06 +0100
commitda9920a33d12a2ebd04f4572a6d134dfb6e6cab6 (patch)
treec61a3f26f529b3bd97030614e253b6bb05c216ce /Private/Source
parent223aad0fd3f8af6f69eb6429e5514bc888afe0d9 (diff)
Kernel: Got HCoreLite up and running.
- Working on standard edition of HCoreLdr (Kernel and Bootloader separated) Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
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,