diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-10-09 13:06:53 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-10-09 13:06:53 +0200 |
| commit | 122681ad5bc13ceece505e030a1141d2ae76c252 (patch) | |
| tree | 92a3647489f17d51d62344233bb91b61e15270f1 /dev/sci/sci_base.hxx | |
| parent | 2a51866f3f39d4ebf0fd2d132cfad1e2962d1236 (diff) | |
IMP: Implemented SCI Memory Manager following functions: MmFillMemory
and MmCopyMemory.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'dev/sci/sci_base.hxx')
| -rw-r--r-- | dev/sci/sci_base.hxx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/dev/sci/sci_base.hxx b/dev/sci/sci_base.hxx index 70a0f7f4..f0eff474 100644 --- a/dev/sci/sci_base.hxx +++ b/dev/sci/sci_base.hxx @@ -208,8 +208,11 @@ IMPORT_C VoidPtr MmCreateHeap(_Input SizeT len, _Input UInt32 flags); /// @return void.
IMPORT_C Void MmDestroyHeap(_Input VoidPtr heap);
-/// @brief Change protection flags of memory region.
-IMPORT_C UInt32 MmChangeHeapFlags(_Input VoidPtr heap, _Input UInt32 flags);
+/// @brief Change protection flags of a memory region.
+IMPORT_C Void MmSetHeapFlags(_Input VoidPtr heap, _Input UInt32 flags);
+
+/// @brief Change protection flags of a memory region.
+IMPORT_C UInt32 MmGetHeapFlags(_Input VoidPtr heap);
/// @brief Fill memory region with CRC32.
IMPORT_C UInt32 MmFillCRC32Heap(_Input VoidPtr heap);
@@ -243,12 +246,14 @@ IMPORT_C Void ThrExitMainThread(_Input SInt32 exit_code); /// @param exit_code the exit code.
IMPORT_C Void ThrExitThread(_Input ThreadObject thread, _Input SInt32 exit_code);
-typedef Void(*GenericThreadFn)(Void);
+typedef Void(*ThreadProc)(Void);
/// @brief Create a thread.
-/// @param proc the thread procedure.
+/// @param procedure the thread procedure.
+/// @param argument_count number of arguments inside that thread.
+/// @param flags Thread flags.
/// @return the thread object.
-IMPORT_C ThreadObject ThrCreateThread(GenericThreadFn proc);
+IMPORT_C ThreadObject ThrCreateThread(ThreadProc procedure, SInt32 argument_count, SInt32 flags);
/// @brief Yield the current thread.
/// @param thread the thread to yield.
|
