/* ------------------------------------------- Copyright Mahrouss Logic ------------------------------------------- */ #include // bugs = 0 namespace NewOS { /// @brief wakes up thread. /// wakes up thread from hang. void rt_wakeup_thread(HAL::StackFrame* stack) { HAL::rt_cli(); stack->Rcx = 0; HAL::rt_sti(); } /// @brief makes thread sleep. /// hooks and hangs thread to prevent code from executing. void rt_hang_thread(HAL::StackFrame* stack) { HAL::rt_cli(); stack->Rcx = 1; HAL::rt_sti(); } } // namespace NewOS