summaryrefslogtreecommitdiffhomepage
path: root/Private/NewKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-29 18:17:47 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-29 18:18:59 +0100
commit65254486efff0fd1bb78a48ff90b7713a5ce539f (patch)
tree20ce02c12a74ba9e6cd382bf9c1f09a0c611cb4d /Private/NewKit
parentf03986937db0b927da4b10554801e18e4dc7c43f (diff)
Kernel: Update TODO.
Src: Refactorings according to clang-format. Meta: Update specification. Public: Remove useless UIKit. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/NewKit')
-rw-r--r--Private/NewKit/KernelHeap.hpp (renamed from Private/NewKit/KHeap.hpp)6
-rw-r--r--Private/NewKit/Macros.hpp6
-rw-r--r--Private/NewKit/New.hpp2
-rw-r--r--Private/NewKit/NewKit.hpp2
-rw-r--r--Private/NewKit/UserHeap.hpp (renamed from Private/NewKit/Heap.hpp)0
5 files changed, 8 insertions, 8 deletions
diff --git a/Private/NewKit/KHeap.hpp b/Private/NewKit/KernelHeap.hpp
index 7c9802d7..13037aa1 100644
--- a/Private/NewKit/KHeap.hpp
+++ b/Private/NewKit/KernelHeap.hpp
@@ -11,13 +11,13 @@
// last-rev 5/03/23
// file: KHeap.hpp
-// description: page allocation for kernel.
+// description: heap allocation for the kernel.
#include <NewKit/Defines.hpp>
#include <NewKit/Pmm.hpp>
namespace hCore
{
-Int32 kernel_delete_ptr(voidPtr allocatedPtr);
-voidPtr kernel_new_ptr(const SizeT &sz, const bool rw, const bool user);
+ Int32 kernel_delete_ptr(voidPtr allocatedPtr);
+ voidPtr kernel_new_ptr(const SizeT &sz, const bool rw, const bool user);
} // namespace hCore
diff --git a/Private/NewKit/Macros.hpp b/Private/NewKit/Macros.hpp
index 8972e7b5..a6cb58dc 100644
--- a/Private/NewKit/Macros.hpp
+++ b/Private/NewKit/Macros.hpp
@@ -37,9 +37,9 @@
#define ATTRIBUTE(X) __attribute__((X))
#endif // #ifndef ATTRIBUTE
-#ifndef __hCore__
-#define __hCore__ (202401)
-#endif // !__hCore__
+#ifndef __HCORE__
+#define __HCORE__ (202401)
+#endif // !__HCORE__
#ifndef EXTERN_C
#define EXTERN_C() \
diff --git a/Private/NewKit/New.hpp b/Private/NewKit/New.hpp
index 07939ab6..ba862788 100644
--- a/Private/NewKit/New.hpp
+++ b/Private/NewKit/New.hpp
@@ -9,7 +9,7 @@
*/
#pragma once
-#include <NewKit/KHeap.hpp>
+#include <NewKit/KernelHeap.hpp>
typedef __SIZE_TYPE__ size_t; // gcc will complain about that
diff --git a/Private/NewKit/NewKit.hpp b/Private/NewKit/NewKit.hpp
index e6797f33..02931085 100644
--- a/Private/NewKit/NewKit.hpp
+++ b/Private/NewKit/NewKit.hpp
@@ -13,7 +13,7 @@
#include <NewKit/OwnPtr.hpp>
#include <NewKit/New.hpp>
#include <NewKit/Json.hpp>
-#include <NewKit/Heap.hpp>
+#include <NewKit/UserHeap.hpp>
#include <NewKit/ErrorOr.hpp>
#include <NewKit/ArrayList.hpp>
#include <NewKit/Array.hpp>
diff --git a/Private/NewKit/Heap.hpp b/Private/NewKit/UserHeap.hpp
index 71a93f6b..71a93f6b 100644
--- a/Private/NewKit/Heap.hpp
+++ b/Private/NewKit/UserHeap.hpp