diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-30 17:59:15 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-30 17:59:15 +0100 |
| commit | 1be243700efc9e36060c5fb65c951d5db6b98e94 (patch) | |
| tree | 2f57d5092f4de4798e80e80b6dd29f984edb7683 /Private/Source/KernelHeap.cxx | |
| parent | 1d3bed385c9666db5b1803ee8e02a2c4fdcc9f29 (diff) | |
Add ROADMAP details, add EFI Library for bootloader.
Add assignee to code in MailMap.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/Source/KernelHeap.cxx')
| -rw-r--r-- | Private/Source/KernelHeap.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Private/Source/KernelHeap.cxx b/Private/Source/KernelHeap.cxx index 94e9156c..3e61a733 100644 --- a/Private/Source/KernelHeap.cxx +++ b/Private/Source/KernelHeap.cxx @@ -40,7 +40,7 @@ static voidPtr find_ptr(const SizeT &sz, const bool rw, const bool user) { /// @param rw read write (true to enable it) /// @param user is it accesible by user processes? /// @return the pointer -VoidPtr kernel_new_ptr(const SizeT &sz, const bool rw, const bool user) { +VoidPtr ke_new_ke_heap(const SizeT &sz, const bool rw, const bool user) { if (kWrapperCount < sz) return nullptr; if (auto ptr = Detail::find_ptr(sz, rw, user); ptr) return ptr; @@ -62,7 +62,7 @@ VoidPtr kernel_new_ptr(const SizeT &sz, const bool rw, const bool user) { /// @brief Declare pointer as free. /// @param ptr the pointer. /// @return -Int32 kernel_delete_ptr(voidPtr ptr) { +Int32 ke_delete_ke_heap(voidPtr ptr) { if (ptr) { const UIntPtr virtualAddress = reinterpret_cast<UIntPtr>(ptr); @@ -106,4 +106,13 @@ Boolean kernel_valid_ptr(voidPtr ptr) { return false; } + +/// @brief The Kernel heap initializer function. +/// @return +Void ke_init_ke_heap() noexcept +{ + kWrapperCount = 0UL; + Ref<PTEWrapper *> kLastWrapper = Ref<PTEWrapper*>(nullptr); + Pmm kPmm = Pmm(); +} } // namespace HCore |
