diff options
| author | Amlal <amlalelmahrouss@icloud.com> | 2024-12-17 10:42:10 +0100 |
|---|---|---|
| committer | Amlal <amlalelmahrouss@icloud.com> | 2024-12-17 10:42:10 +0100 |
| commit | 03902f82edb1bac41631a3c2aeac866089ccaef8 (patch) | |
| tree | 06ac75fdd12446915091a5307981459f048a9d5c /dev/ZKAKit/HALKit | |
| parent | 83cf6299a17d60ece650baa05069f657f783c911 (diff) | |
Kernel: Lots of fixes and improvements on the kernel's KWindow and Filesystem.
Diffstat (limited to 'dev/ZKAKit/HALKit')
| -rw-r--r-- | dev/ZKAKit/HALKit/AMD64/HalKernelMain.cc | 8 | ||||
| -rw-r--r-- | dev/ZKAKit/HALKit/ARM64/HalKernelMain.cc | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/dev/ZKAKit/HALKit/AMD64/HalKernelMain.cc b/dev/ZKAKit/HALKit/AMD64/HalKernelMain.cc index d68c0541..d6fe8a14 100644 --- a/dev/ZKAKit/HALKit/AMD64/HalKernelMain.cc +++ b/dev/ZKAKit/HALKit/AMD64/HalKernelMain.cc @@ -18,16 +18,16 @@ 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::rtl_main_kind __CTOR_LIST__[]; +EXTERN_C Kernel::rtl_ctor_kind __CTOR_LIST__[]; EXTERN_C Kernel::VoidPtr __DTOR_LIST__; -EXTERN_C Kernel::Void gsh_dll_main(Kernel::Void); +EXTERN_C Kernel::Void rtl_kernel_main(Kernel::SizeT argc, char** argv, char** envp, Kernel::SizeT envp_len); STATIC Kernel::Void hal_init_cxx_ctors() { for (Kernel::SizeT index = 0UL; __CTOR_LIST__[index] != __DTOR_LIST__; ++index) { - Kernel::rtl_main_kind constructor_cxx = (Kernel::rtl_main_kind)__CTOR_LIST__[index]; + Kernel::rtl_ctor_kind constructor_cxx = (Kernel::rtl_ctor_kind)__CTOR_LIST__[index]; constructor_cxx(); } } @@ -86,7 +86,7 @@ EXTERN_C Kernel::Void hal_real_init(Kernel::Void) noexcept { CG::CGDrawBackground(); - Kernel::rtl_create_process(gsh_dll_main, "GSh"); + rtl_kernel_main(0, nullptr, nullptr, 0); if (kHandoverHeader->f_HardwareTables.f_MultiProcessingEnabled) Kernel::HAL::mp_get_cores(kHandoverHeader->f_HardwareTables.f_VendorPtr); diff --git a/dev/ZKAKit/HALKit/ARM64/HalKernelMain.cc b/dev/ZKAKit/HALKit/ARM64/HalKernelMain.cc index b3a18663..c7c642ff 100644 --- a/dev/ZKAKit/HALKit/ARM64/HalKernelMain.cc +++ b/dev/ZKAKit/HALKit/ARM64/HalKernelMain.cc @@ -19,7 +19,7 @@ #include <CFKit/Property.h> Kernel::Void hal_real_init(Kernel::Void) noexcept; -EXTERN_C Kernel::Void gsh_dll_main(Kernel::Void); +EXTERN_C Kernel::Void rtl_kernel_main(Kernel::SizeT argc, char** argv, char** envp, Kernel::SizeT envp_len); EXTERN_C void hal_init_platform( Kernel::HEL::BootInfoHeader* handover_hdr) @@ -49,7 +49,7 @@ EXTERN_C void hal_init_platform( CG::CGDrawBackground(); - Kernel::rtl_create_process(gsh_dll_main, "GSh"); + rtl_kernel_main(0, nullptr, nullptr, 0); while (YES) { |
