summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/src/CodeMgr.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-24 03:02:43 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-24 03:02:43 +0100
commit83d870e58457a1d335a1d9b9966a6a1887cc297b (patch)
tree72888f88c7728c82f3f6df1f4f70591de15eab36 /dev/kernel/src/CodeMgr.cc
parentab37adbacf0f33845804c788b39680cd754752a8 (diff)
feat! breaking changes on kernel sources.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/src/CodeMgr.cc')
-rw-r--r--dev/kernel/src/CodeMgr.cc35
1 files changed, 0 insertions, 35 deletions
diff --git a/dev/kernel/src/CodeMgr.cc b/dev/kernel/src/CodeMgr.cc
deleted file mode 100644
index 7b7add6d..00000000
--- a/dev/kernel/src/CodeMgr.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-/* ========================================
-
- Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
-
-======================================== */
-
-#include <KernelKit/CodeMgr.h>
-#include <KernelKit/ProcessScheduler.h>
-#include <NeKit/Utils.h>
-
-namespace Kernel {
-
-/// @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 The team's process id.
-BOOL rtl_create_kernel_task(HAL::StackFramePtr task, const KID kid) noexcept {
- if (!kid || task == nullptr) return FALSE;
- return KernelTaskHelper::Add(task, kid);
-}
-
-/***********************************************************************************/
-/// @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.
-/***********************************************************************************/
-
-ProcessID rtl_create_user_process(rtl_main_kind main, const Char* process_name) noexcept {
- if (!process_name || *process_name == 0) return kSchedInvalidPID;
- return UserProcessScheduler::The().Spawn(process_name, reinterpret_cast<VoidPtr>(main), nullptr);
-}
-} // namespace Kernel