diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-06 11:30:56 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-06 11:30:56 +0100 |
| commit | 61492dc648412818e1f0e96dbc9522514b1fed2a (patch) | |
| tree | 068fd8cca5e27cbe48990dae2e10cc618e6ae155 /Private/Source | |
| parent | 55eb89dde91318a6b7f37e824d383e0625cd53f1 (diff) | |
HCR-15 : Load kernel into memory.
Progess have been done regarding PE/MZ support, also updated PEF impl to
not rely on compiler feature __attribute__
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/Source')
| -rw-r--r-- | Private/Source/IndexableProperty.cxx | 2 | ||||
| -rw-r--r-- | Private/Source/NewFS+IO.cxx (renamed from Private/Source/NewFS-IO.cxx) | 0 | ||||
| -rw-r--r-- | Private/Source/NewFS+Journal.cxx (renamed from Private/Source/NewFS-Journal.cxx) | 0 | ||||
| -rw-r--r-- | Private/Source/PEFSharedObjectRT.cxx | 4 | ||||
| -rw-r--r-- | Private/Source/Pmm.cxx | 2 | ||||
| -rw-r--r-- | Private/Source/SMPManager.cxx | 7 |
6 files changed, 7 insertions, 8 deletions
diff --git a/Private/Source/IndexableProperty.cxx b/Private/Source/IndexableProperty.cxx index d3a9fdd0..674db861 100644 --- a/Private/Source/IndexableProperty.cxx +++ b/Private/Source/IndexableProperty.cxx @@ -7,7 +7,7 @@ * ======================================================== */ -//! @brief HCore NewFS Indexer. +//! @brief Filesystem Indexer. #include <CompilerKit/CompilerKit.hpp> #include <FSKit/IndexableProperty.hxx> diff --git a/Private/Source/NewFS-IO.cxx b/Private/Source/NewFS+IO.cxx index e90ed1a4..e90ed1a4 100644 --- a/Private/Source/NewFS-IO.cxx +++ b/Private/Source/NewFS+IO.cxx diff --git a/Private/Source/NewFS-Journal.cxx b/Private/Source/NewFS+Journal.cxx index 72812b6e..72812b6e 100644 --- a/Private/Source/NewFS-Journal.cxx +++ b/Private/Source/NewFS+Journal.cxx diff --git a/Private/Source/PEFSharedObjectRT.cxx b/Private/Source/PEFSharedObjectRT.cxx index c13314df..c6bec404 100644 --- a/Private/Source/PEFSharedObjectRT.cxx +++ b/Private/Source/PEFSharedObjectRT.cxx @@ -66,7 +66,7 @@ extern "C" SharedObject *__LibInit() { library->Get()->fImageEntrypointOffset = library->Load<VoidPtr>(kPefStart, string_length(kPefStart, 0), kPefCode); - kcout << "__LibInit: Task was successful!\n"; + kcout << "__LibInit: Task is successful!\n"; return library; } @@ -94,7 +94,7 @@ extern "C" Void __LibFini(SharedObjectPtr lib, bool *successful) { lib = nullptr; - kcout << "__LibFini: Task was successful!\n"; + kcout << "__LibFini: Task is successful!\n"; *successful = true; } diff --git a/Private/Source/Pmm.cxx b/Private/Source/Pmm.cxx index 76191fdd..7eb6875e 100644 --- a/Private/Source/Pmm.cxx +++ b/Private/Source/Pmm.cxx @@ -23,8 +23,6 @@ Ref<PTEWrapper *> Pmm::RequestPage(Boolean user, Boolean readWrite) { PTEWrapper *pt = m_PageManager.Leak().Request(user, readWrite, true); if (pt) return Ref<PTEWrapper *>(pt); - - return {}; } kcout << "[Pmm::RequestPage] Ref<PTEWrapper*> could not be created! " diff --git a/Private/Source/SMPManager.cxx b/Private/Source/SMPManager.cxx index 9b976412..487eda51 100644 --- a/Private/Source/SMPManager.cxx +++ b/Private/Source/SMPManager.cxx @@ -67,7 +67,8 @@ bool HardwareThread::Switch(HAL::StackFrame* stack) { m_Stack = stack; - return rt_do_context_switch(m_Stack) == 0; + rt_do_context_switch(m_Stack); + return true; } ///! @brief Tells if processor is waked up. @@ -114,11 +115,11 @@ bool SMPManager::Switch(HAL::StackFrame* stack) { m_ThreadList[idx].Leak().Leak().Busy(true); - Boolean ret = (rt_do_context_switch(stack) == 0); + rt_do_context_switch(stack); m_ThreadList[idx].Leak().Leak().Busy(false); - return ret; + return true; } return false; |
