diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-30 18:06:17 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-30 18:06:17 +0200 |
| commit | 01fb3ca21dd5846ecd7e4e94571ede5a5264d9a6 (patch) | |
| tree | 60201d088bb2c1cc12777611b15c2708bf71787b /Kernel/KernelKit | |
| parent | 579d076015eece5961b1034979ade2be09c6bfcd (diff) | |
[SMP] WiP impelementation of SMP inside the HAL.
- Doing R&D on SMP on AMD64,
- Working on a first application.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Kernel/KernelKit')
| -rw-r--r-- | Kernel/KernelKit/Defines.hpp | 4 | ||||
| -rw-r--r-- | Kernel/KernelKit/Heap.hxx | 10 | ||||
| -rw-r--r-- | Kernel/KernelKit/LoaderInterface.hpp | 2 | ||||
| -rw-r--r-- | Kernel/KernelKit/MPManager.hpp | 10 | ||||
| -rw-r--r-- | Kernel/KernelKit/PEFCodeManager.hxx | 2 |
5 files changed, 14 insertions, 14 deletions
diff --git a/Kernel/KernelKit/Defines.hpp b/Kernel/KernelKit/Defines.hpp index 32f67f10..191d1098 100644 --- a/Kernel/KernelKit/Defines.hpp +++ b/Kernel/KernelKit/Defines.hpp @@ -8,5 +8,5 @@ #include <NewKit/Defines.hpp> -#define KERNELKIT_VERSION "1.01" -#define KERNELKIT_RELEASE "Cairo" +#define KERNELKIT_VERSION "1.02" +#define KERNELKIT_RELEASE "Alexandria" diff --git a/Kernel/KernelKit/Heap.hxx b/Kernel/KernelKit/Heap.hxx index 0f673ffb..1ed029cd 100644 --- a/Kernel/KernelKit/Heap.hxx +++ b/Kernel/KernelKit/Heap.hxx @@ -18,12 +18,12 @@ namespace Kernel /// @brief Declare pointer as free. /// @param allocatedPtr the pointer. /// @return - Int32 ke_delete_ke_heap(voidPtr allocatedPtr); + Int32 mm_delete_ke_heap(voidPtr allocatedPtr); /// @brief Declare a new size for allocatedPtr. /// @param allocatedPtr the pointer. /// @return - voidPtr ke_realloc_ke_heap(voidPtr allocatedPtr, SizeT newSz); + voidPtr mm_realloc_ke_heap(voidPtr allocatedPtr, SizeT newSz); /// @brief Check if pointer is a valid kernel pointer. /// @param allocatedPtr the pointer @@ -35,17 +35,17 @@ namespace Kernel /// @param rw read write (true to enable it) /// @param user is it accesible by user processes? /// @return the pointer - voidPtr ke_new_ke_heap(const SizeT sz, const Bool rw, const Bool user); + voidPtr mm_new_ke_heap(const SizeT sz, const Bool rw, const Bool user); /// @brief Protect the heap with a CRC value. /// @param allocatedPtr pointer. /// @return if it valid: point has crc now., otherwise fail. - Boolean ke_protect_ke_heap(VoidPtr allocatedPtr); + Boolean mm_protect_ke_heap(VoidPtr allocatedPtr); /// @brief Makes a kernel heap page. /// @param allocatedPtr the page pointer. /// @return - Int32 ke_make_ke_page(VoidPtr allocatedPtr); + Int32 mm_make_ke_page(VoidPtr allocatedPtr); } // namespace Kernel #endif // !_INC_KERNEL_HEAP_HXX_ diff --git a/Kernel/KernelKit/LoaderInterface.hpp b/Kernel/KernelKit/LoaderInterface.hpp index a6b54d8b..e49e0085 100644 --- a/Kernel/KernelKit/LoaderInterface.hpp +++ b/Kernel/KernelKit/LoaderInterface.hpp @@ -24,7 +24,7 @@ namespace Kernel NEWOS_COPY_DEFAULT(LoaderInterface); public: - virtual _Output const char* FormatAsString() = 0; + virtual _Output const char* AsString() = 0; virtual _Output const char* MIME() = 0; virtual _Output const char* Path() = 0; virtual _Output ErrorOr<VoidPtr> FindStart() = 0; diff --git a/Kernel/KernelKit/MPManager.hpp b/Kernel/KernelKit/MPManager.hpp index 6f23dd66..ccd1af37 100644 --- a/Kernel/KernelKit/MPManager.hpp +++ b/Kernel/KernelKit/MPManager.hpp @@ -66,11 +66,11 @@ namespace Kernel private: HAL::StackFrame* fStack{nullptr}; - ThreadKind fKind; - ThreadID fID; - ProcessID fSourcePID; - bool fWakeup; - bool fBusy; + ThreadKind fKind{ThreadKind::kInvalidHart}; + ThreadID fID{0}; + ProcessID fSourcePID{-1}; + bool fWakeup{false}; + bool fBusy{false}; private: friend class MPManager; diff --git a/Kernel/KernelKit/PEFCodeManager.hxx b/Kernel/KernelKit/PEFCodeManager.hxx index 5e48331a..7f06e5ad 100644 --- a/Kernel/KernelKit/PEFCodeManager.hxx +++ b/Kernel/KernelKit/PEFCodeManager.hxx @@ -35,7 +35,7 @@ namespace Kernel public: const char* Path() override; - const char* FormatAsString() override; + const char* AsString() override; const char* MIME() override; public: |
