summaryrefslogtreecommitdiffhomepage
path: root/dev/ZKA/Sources
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-09-01 14:31:49 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-09-01 14:31:49 +0200
commit46670e7ba97ec80bbcc88feb3d7db7ef3f5e2147 (patch)
treef0cd096f6492e1283d443c7887f8885e6c084a0b /dev/ZKA/Sources
parent1af5efb5c96af6f3246c8eae42912b2fbcd7f006 (diff)
[ IMP ] Add more code segments for other purposes, which is very
useful for drivers and other kernel functions. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/ZKA/Sources')
-rw-r--r--dev/ZKA/Sources/DLLMain.cxx26
1 files changed, 5 insertions, 21 deletions
diff --git a/dev/ZKA/Sources/DLLMain.cxx b/dev/ZKA/Sources/DLLMain.cxx
index 514834d0..6684ed69 100644
--- a/dev/ZKA/Sources/DLLMain.cxx
+++ b/dev/ZKA/Sources/DLLMain.cxx
@@ -192,28 +192,12 @@ EXTERN_C Kernel::Void ke_dll_entrypoint(Kernel::Void)
CG::CGDrawStringToWnd(cKernelWnd, "newoskrnl.dll: Starting ZKA System...", 30, 10, RGB(0, 0, 0));
- Kernel::PEFLoader sys_user_drv(kSysDrv);
-
- if (sys_user_drv.IsLoaded())
- {
- auto err_start = sys_user_drv.FindStart();
+ auto main_logger = []() -> void {
+ /// TODO: Write code which calls the login process.
+ while (Yes);
+ };
- if (!err_start.Error())
- {
- auto start = err_start.Leak().Leak();
- CG::CGDrawStringToWnd(cKernelWnd, "newoskrnl.dll: System component successfully loaded...", 20, 10, RGB(0, 0, 0));
- }
- else
- {
- CG::CGDrawStringToWnd(cKernelWnd, "newoskrnl.dll: Missing entrypoint symbol: ", 20, 10, RGB(0, 0, 0));
- CG::CGDrawStringToWnd(cKernelWnd, kPefStart, 20, 10 + (FONT_SIZE_X * Kernel::rt_string_len("newoskrnl.dll: Missing entrypoint symbol: ")), RGB(0, 0, 0));
- }
- }
- else
- {
- CG::CGDrawStringToWnd(cKernelWnd, "newoskrnl.dll: Missing catalog: ", 20, 10, RGB(0, 0, 0));
- CG::CGDrawStringToWnd(cKernelWnd, kSysDrv, 20, 10 + (FONT_SIZE_X * Kernel::rt_string_len("newoskrnl.dll: Missing catalog: ")), RGB(0, 0, 0));
- }
+ Kernel::sched_execute_thread(main_logger, "ZKA Init Thread");
Kernel::ProcessHelper::StartScheduling();
Kernel::ke_stop(RUNTIME_CHECK_BOOTSTRAP);