summaryrefslogtreecommitdiffhomepage
path: root/SDK/Libraries/CoreSystem/Sources/Heap.c
diff options
context:
space:
mode:
authorAmlal EL Mahrouss <amlal@softwarelabs.com>2024-06-09 19:59:14 +0200
committerAmlal EL Mahrouss <amlal@softwarelabs.com>2024-06-09 19:59:14 +0200
commit3cded2a8deaaa8e6907ed1b47d174eb267aab7aa (patch)
treec62fd9f4a8ffe55a9c4066f76bed841872155d1b /SDK/Libraries/CoreSystem/Sources/Heap.c
parent9679f4d8676cb72feb80d95bca6ce26965f40042 (diff)
MHR-23: Refactor and finishing SMP support.
Diffstat (limited to 'SDK/Libraries/CoreSystem/Sources/Heap.c')
-rw-r--r--SDK/Libraries/CoreSystem/Sources/Heap.c54
1 files changed, 0 insertions, 54 deletions
diff --git a/SDK/Libraries/CoreSystem/Sources/Heap.c b/SDK/Libraries/CoreSystem/Sources/Heap.c
deleted file mode 100644
index e7a77ba5..00000000
--- a/SDK/Libraries/CoreSystem/Sources/Heap.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/* -------------------------------------------
-
- Copyright SoftwareLabs
-
-------------------------------------------- */
-
-#include <Headers/Defines.h>
-#include <Headers/Heap.h>
-
-/// @brief Allocate from the user's heap.
-/// @param sz size of object.
-/// @param flags flags.
-/// @return
-CS_EXTERN_C PtrVoidType CSAllocateHeap(QWordType sz, DWordType flags)
-{
- CS_MUST_PASS(kSharedApplication);
- CS_MUST_PASS(sz);
- CS_MUST_PASS(flags);
-
- return (PtrVoidType)kSharedApplication->Invoke(kSharedApplication,
- kCallAllocPtr, sz, flags);
-}
-
-/// @brief Free pointer from the user's heap.
-/// @param ptr the pointer to free.
-CS_EXTERN_C VoidType CSFreeHeap(PtrVoidType ptr)
-{
- CS_MUST_PASS(kSharedApplication);
- CS_MUST_PASS(ptr);
-
- CS_UNREFERENCED_PARAMETER(
- kSharedApplication->Invoke(kSharedApplication, kCallFreePtr, ptr));
-}
-
-/// @brief Get pointer size.
-/// @param ptr the pointer to find.
-/// @return the size.
-CS_EXTERN_C QWordType CSGetHeapSize(PtrVoidType ptr)
-{
- CS_MUST_PASS(kSharedApplication);
-
- CS_MUST_PASS(ptr);
- return kSharedApplication->Invoke(kSharedApplication, kCallSizePtr, ptr);
-}
-
-/// @brief Check if the pointer exists.
-/// @param ptr the pointer to check.
-/// @return if it exists
-CS_EXTERN_C BooleanType CSIsHeapValid(PtrVoidType ptr)
-{
- CS_MUST_PASS(kSharedApplication);
- CS_MUST_PASS(ptr);
- return kSharedApplication->Invoke(kSharedApplication, kCallCheckPtr, ptr);
-}