diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-11 20:59:22 +0100 |
|---|---|---|
| committer | amlal <amlal@el-mahrouss-logic.com> | 2024-03-11 21:05:13 +0100 |
| commit | ba8ddb24e0ac6c7b1a617519a4bde9970610fbcc (patch) | |
| tree | c741ec82a267e44e2a362399ed20439184504ace /Private/KernelKit | |
| parent | 5468ca71a59c9e24c1d392554e8f97f0c1705394 (diff) | |
Kernel: Important changes, needs to be merged to master.
- Add Logon executive.
- Adding HCore System Call Interface (inside System.Core.dll)
- Add _InOut and _StrictInOut inside HintKit.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Signed-off-by: amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/KernelKit')
| -rw-r--r-- | Private/KernelKit/HError.hpp | 3 | ||||
| -rw-r--r-- | Private/KernelKit/ProcessScheduler.hpp (renamed from Private/KernelKit/ProcessManager.hpp) | 15 | ||||
| -rw-r--r-- | Private/KernelKit/ProcessTeam.hpp | 2 | ||||
| -rw-r--r-- | Private/KernelKit/ThreadLocalStorage.inl | 2 | ||||
| -rw-r--r-- | Private/KernelKit/Timer.hpp | 2 |
5 files changed, 14 insertions, 10 deletions
diff --git a/Private/KernelKit/HError.hpp b/Private/KernelKit/HError.hpp index 1b971e94..41bfaf3d 100644 --- a/Private/KernelKit/HError.hpp +++ b/Private/KernelKit/HError.hpp @@ -7,6 +7,7 @@ #pragma once #include <NewKit/Defines.hpp> +#include <NewKit/ErrorID.hpp> namespace HCore { typedef Int32 HError; @@ -25,6 +26,8 @@ inline constexpr HError kErrorMath = 42; inline constexpr HError kErrorNoNetwork = 43; inline constexpr HError kErrorHeapOutOfMemory = 44; inline constexpr HError kErrorNoSuchDisk = 45; +inline constexpr HError kErrorFileExists = 46; +inline constexpr HError kErrorUnimplemented = 0; Boolean ke_bug_check(void) noexcept; } // namespace HCore diff --git a/Private/KernelKit/ProcessManager.hpp b/Private/KernelKit/ProcessScheduler.hpp index c7c69093..e69d2fcf 100644 --- a/Private/KernelKit/ProcessManager.hpp +++ b/Private/KernelKit/ProcessScheduler.hpp @@ -4,8 +4,8 @@ ------------------------------------------- */ -#ifndef __PROCESS_MANAGER__ -#define __PROCESS_MANAGER__ +#ifndef __PROCESS_SCHEDULER__ +#define __PROCESS_SCHEDULER__ #include <ArchKit/ArchKit.hpp> #include <KernelKit/FileManager.hpp> @@ -121,7 +121,7 @@ class Process final { HCORE_COPY_DEFAULT(Process) public: - void AssignStart(UIntPtr &imageStart) noexcept; + void SetStart(UIntPtr &imageStart) noexcept; public: Char Name[kProcessLen] = {"Process"}; @@ -168,13 +168,14 @@ class Process final { //! @brief TLS Free. Boolean Delete(VoidPtr ptr, const SizeT &sz); - //! @brief Process name getter, example: "C RunTime" - const Char *GetName(); - //! @brief Wakes up threads. void Wake(const bool wakeup = false); + // Process getters. public: + //! @brief Process name getter, example: "C RunTime" + const Char *GetName(); + const ProcessSelector &GetSelector(); const ProcessStatus &GetStatus(); const AffinityKind &GetAffinity(); @@ -254,4 +255,4 @@ const Int32 &rt_get_exit_code() noexcept; //////////////////////////////////////////////////// -#endif /* ifndef __PROCESS_MANAGER__ */ +#endif /* ifndef __PROCESS_SCHEDULER__ */ diff --git a/Private/KernelKit/ProcessTeam.hpp b/Private/KernelKit/ProcessTeam.hpp index 31759ff6..b60a8a0d 100644 --- a/Private/KernelKit/ProcessTeam.hpp +++ b/Private/KernelKit/ProcessTeam.hpp @@ -6,4 +6,4 @@ #pragma once -#include <KernelKit/ProcessManager.hpp>
\ No newline at end of file +#include <KernelKit/ProcessScheduler.hpp>
\ No newline at end of file diff --git a/Private/KernelKit/ThreadLocalStorage.inl b/Private/KernelKit/ThreadLocalStorage.inl index a9bc04cc..a42c2381 100644 --- a/Private/KernelKit/ThreadLocalStorage.inl +++ b/Private/KernelKit/ThreadLocalStorage.inl @@ -7,7 +7,7 @@ //! @brief Allocates a pointer from the process's tls. #ifndef __PROCESS_MANAGER__ -#include <KernelKit/ProcessManager.hpp> +#include <KernelKit/ProcessScheduler.hpp> #endif template <typename T> diff --git a/Private/KernelKit/Timer.hpp b/Private/KernelKit/Timer.hpp index ef726b08..ddfac06a 100644 --- a/Private/KernelKit/Timer.hpp +++ b/Private/KernelKit/Timer.hpp @@ -20,7 +20,7 @@ class HardwareTimerInterface { public: /// @brief Default constructor - HardwareTimerInterface() = default; + explicit HardwareTimerInterface() = default; virtual ~HardwareTimerInterface() = default; public: |
