summaryrefslogtreecommitdiffhomepage
path: root/dev
diff options
context:
space:
mode:
authorAmlal <amlalelmahrouss@icloud.com>2024-12-16 06:02:01 +0100
committerAmlal <amlalelmahrouss@icloud.com>2024-12-16 06:02:01 +0100
commit83cf6299a17d60ece650baa05069f657f783c911 (patch)
treeb886d51fe3a46e32eb063b96ac932cbf40080d5a /dev
parent6e17212bee66c76a82787e32f50962c95c9b3044 (diff)
IMPL: rtl_main_kind type from CodeMgr.
Signed-off-by: Amlal <amlalelmahrouss@icloud.com>
Diffstat (limited to 'dev')
-rw-r--r--dev/ZKAKit/HALKit/AMD64/HalKernelMain.cc4
-rw-r--r--dev/ZKAKit/KernelKit/CodeMgr.h6
-rw-r--r--dev/ZKAKit/src/CodeMgr.cc2
3 files changed, 6 insertions, 6 deletions
diff --git a/dev/ZKAKit/HALKit/AMD64/HalKernelMain.cc b/dev/ZKAKit/HALKit/AMD64/HalKernelMain.cc
index cb3941ba..d68c0541 100644
--- a/dev/ZKAKit/HALKit/AMD64/HalKernelMain.cc
+++ b/dev/ZKAKit/HALKit/AMD64/HalKernelMain.cc
@@ -18,7 +18,7 @@ EXTERN_C Kernel::VoidPtr kInterruptVectorTable[];
EXTERN_C Kernel::VoidPtr mp_user_switch_proc;
EXTERN_C Kernel::Char mp_user_switch_proc_stack_begin[];
-EXTERN_C Kernel::MainKind __CTOR_LIST__[];
+EXTERN_C Kernel::rtl_main_kind __CTOR_LIST__[];
EXTERN_C Kernel::VoidPtr __DTOR_LIST__;
EXTERN_C Kernel::Void gsh_dll_main(Kernel::Void);
@@ -27,7 +27,7 @@ STATIC Kernel::Void hal_init_cxx_ctors()
{
for (Kernel::SizeT index = 0UL; __CTOR_LIST__[index] != __DTOR_LIST__; ++index)
{
- Kernel::MainKind constructor_cxx = (Kernel::MainKind)__CTOR_LIST__[index];
+ Kernel::rtl_main_kind constructor_cxx = (Kernel::rtl_main_kind)__CTOR_LIST__[index];
constructor_cxx();
}
}
diff --git a/dev/ZKAKit/KernelKit/CodeMgr.h b/dev/ZKAKit/KernelKit/CodeMgr.h
index 1915d55d..1db51449 100644
--- a/dev/ZKAKit/KernelKit/CodeMgr.h
+++ b/dev/ZKAKit/KernelKit/CodeMgr.h
@@ -3,7 +3,7 @@
Copyright (C) 2024, Theater Quality Inc, all rights reserved.
File: CodeMgr.hpp
- Purpose: Code Mgr and DLL mgr.
+ Purpose: Code Mgr.
Revision History:
@@ -21,11 +21,11 @@
namespace Kernel
{
/// @brief Main process entrypoint.
- typedef void (*MainKind)(void);
+ typedef void (*rtl_main_kind)(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 The team's process id.
- ProcessID rtl_create_process(MainKind main, const Char* process_name) noexcept;
+ ProcessID rtl_create_process(rtl_main_kind main, const Char* process_name) noexcept;
} // namespace Kernel
diff --git a/dev/ZKAKit/src/CodeMgr.cc b/dev/ZKAKit/src/CodeMgr.cc
index 43f7fe18..0450f56a 100644
--- a/dev/ZKAKit/src/CodeMgr.cc
+++ b/dev/ZKAKit/src/CodeMgr.cc
@@ -14,7 +14,7 @@ namespace Kernel
/// @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_process(MainKind main, const Char* process_name) noexcept
+ ProcessID rtl_create_process(rtl_main_kind main, const Char* process_name) noexcept
{
if (*process_name == 0)
return kProcessInvalidID;