From 122681ad5bc13ceece505e030a1141d2ae76c252 Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Wed, 9 Oct 2024 13:06:53 +0200 Subject: IMP: Implemented SCI Memory Manager following functions: MmFillMemory and MmCopyMemory. Signed-off-by: Amlal EL Mahrouss --- dev/sci/sci_base.hxx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'dev/sci/sci_base.hxx') 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. -- cgit v1.2.3