summaryrefslogtreecommitdiffhomepage
path: root/KernelKit
diff options
context:
space:
mode:
Diffstat (limited to 'KernelKit')
-rw-r--r--KernelKit/OSErr.hpp1
-rw-r--r--KernelKit/SMPManager.hpp8
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