diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-01-19 14:12:27 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-01-19 14:12:27 +0100 |
| commit | 5d712c34f9254351e5c9f6fd4c465b42114661d0 (patch) | |
| tree | cbb3cec7b056f817417227d1e8004520166e1fa3 /KernelKit | |
| parent | 9d6babb9a3b9ffbedc1fa377f47ff6b3f7585056 (diff) | |
Revision I: Extending PowerPC support.
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'KernelKit')
| -rw-r--r-- | KernelKit/OSErr.hpp | 1 | ||||
| -rw-r--r-- | KernelKit/SMPManager.hpp | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/KernelKit/OSErr.hpp b/KernelKit/OSErr.hpp index 26f91502..0a8efff3 100644 --- a/KernelKit/OSErr.hpp +++ b/KernelKit/OSErr.hpp @@ -26,4 +26,5 @@ namespace hCore inline constexpr OSErr kErrorThreadLocalStorage = 41; inline constexpr OSErr kErrorMath = 42; inline constexpr OSErr kErrorNoNetwork = 43; + inline constexpr OSErr kErrorHeapOutOfMemory = 44; }
\ No newline at end of file diff --git a/KernelKit/SMPManager.hpp b/KernelKit/SMPManager.hpp index 4ebc944a..a757ca9c 100644 --- a/KernelKit/SMPManager.hpp +++ b/KernelKit/SMPManager.hpp @@ -108,6 +108,14 @@ namespace hCore ThreadID m_CurrentThread; }; + + // @brief wakes up thread. + // wakes up thread from hang. + void rt_wakeup_thread(HAL::StackFrame* stack); + + // @brief makes thread sleep. + // hooks and hangs thread to prevent code from executing. + void rt_hang_thread(HAL::StackFrame* stack); } // namespace hCore #endif // !_INC_SMP_MANAGER_HPP |
