From da9920a33d12a2ebd04f4572a6d134dfb6e6cab6 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 22 Feb 2024 11:18:10 +0100 Subject: Kernel: Got HCoreLite up and running. - Working on standard edition of HCoreLdr (Kernel and Bootloader separated) Signed-off-by: Amlal El Mahrouss --- Private/Source/KernelHeap.cxx | 2 -- Private/Source/PageManager.cxx | 6 ------ 2 files changed, 8 deletions(-) (limited to 'Private/Source') 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 -#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(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( 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, -- cgit v1.2.3