summaryrefslogtreecommitdiffhomepage
path: root/dev/zka/KernelKit/CodeMgr.h
diff options
context:
space:
mode:
Diffstat (limited to 'dev/zka/KernelKit/CodeMgr.h')
-rw-r--r--dev/zka/KernelKit/CodeMgr.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/dev/zka/KernelKit/CodeMgr.h b/dev/zka/KernelKit/CodeMgr.h
new file mode 100644
index 00000000..41a90ec5
--- /dev/null
+++ b/dev/zka/KernelKit/CodeMgr.h
@@ -0,0 +1,31 @@
+/* -------------------------------------------
+
+ Copyright ZKA Web Services Co.
+
+ File: CodeMgr.hpp
+ Purpose: Code Mgr and DLL mgr.
+
+ Revision History:
+
+ 30/01/24: Added file (amlel)
+ 3/8/24: Add UPP struct.
+
+------------------------------------------- */
+
+#pragma once
+
+#include <KernelKit/PECodeMgr.h>
+#include <KernelKit/PEFCodeMgr.h>
+#include <KernelKit/IPEFDLLObject.h>
+
+namespace Kernel
+{
+ /// @brief Main process entrypoint.
+ typedef void (*MainKind)(void);
+
+ /// @brief Executes a new process from a function. Kernel code only.
+ /// @note This sets up a new stack, anything on the main function that calls the Kernel will not be accessible.
+ /// @param main the start of the process.
+ /// @return if the process was started or not.
+ bool sched_execute_thread(MainKind main, const Char* process_name) noexcept;
+} // namespace Kernel