diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-04-21 08:53:36 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-04-21 08:53:36 +0200 |
| commit | ebadabf4b6ab4a08c47b098affa0de6d681b5982 (patch) | |
| tree | 477087431fd2bbee9217390ab370dff30f0a2bf0 /Private/KernelKit | |
| parent | bc4f32c10a34c6bded98f378004f7435deede43b (diff) | |
MHR-8: IMP: Implement an allocator for catalog and forks.
- Implement ke_find_free_catalog and ke_find_free_fork.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/KernelKit')
| -rw-r--r-- | Private/KernelKit/DriveManager.hxx | 2 | ||||
| -rw-r--r-- | Private/KernelKit/HError.hpp | 1 | ||||
| -rw-r--r-- | Private/KernelKit/KernelHeap.hpp | 4 |
3 files changed, 4 insertions, 3 deletions
diff --git a/Private/KernelKit/DriveManager.hxx b/Private/KernelKit/DriveManager.hxx index e8028ddd..c3d7c484 100644 --- a/Private/KernelKit/DriveManager.hxx +++ b/Private/KernelKit/DriveManager.hxx @@ -92,7 +92,7 @@ class MountpointInterface final { return &mD; default: { DbgLastError() = kErrorNoSuchDisk; - kcout << "NewOS: No such disk.\n"; + kcout << "New OS: No such disk.\n"; break; } diff --git a/Private/KernelKit/HError.hpp b/Private/KernelKit/HError.hpp index a3ea5d61..b82f7c6b 100644 --- a/Private/KernelKit/HError.hpp +++ b/Private/KernelKit/HError.hpp @@ -35,6 +35,7 @@ inline constexpr HError kErrorOutOfTeamSlot = 51; inline constexpr HError kErrorHeapNotPresent = 52; inline constexpr HError kErrorNoEntrypoint = 53; inline constexpr HError kErrorDiskIsCorrupted = 54; +inline constexpr HError kErrorDisk = 55; inline constexpr HError kErrorUnimplemented = 0; Boolean ke_bug_check(void) noexcept; diff --git a/Private/KernelKit/KernelHeap.hpp b/Private/KernelKit/KernelHeap.hpp index 5358236e..471dcb54 100644 --- a/Private/KernelKit/KernelHeap.hpp +++ b/Private/KernelKit/KernelHeap.hpp @@ -13,7 +13,7 @@ #include <NewKit/Defines.hpp> namespace NewOS { - + /// @brief Declare pointer as free. /// @param heapPtr the pointer. /// @return @@ -31,7 +31,7 @@ Boolean ke_is_valid_heap(VoidPtr ptr); /// @return the pointer voidPtr ke_new_ke_heap(SizeT sz, const bool rw, const bool user); -/// @brief Protect the heap pointer with a CRC32. +/// @brief Protect the heap with a CRC value. /// @param heapPtr HIB pointer. /// @return if it valid: point has crc now., otherwise fail. Boolean ke_protect_ke_heap(VoidPtr heapPtr); |
