diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-04-18 23:10:15 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-04-18 23:10:15 +0200 |
| commit | 0ae4062bfe9936cc9fd2c7bb924442480b067d93 (patch) | |
| tree | 491b3cfc9c751557c37213ff437e56f66d100a4d /Private/HALKit/AMD64/HalHardwareMP.cpp | |
| parent | 706c58b9b9fa74c63180f490a1f48652d0408944 (diff) | |
MHR-5: initial commit.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/HALKit/AMD64/HalHardwareMP.cpp')
| -rw-r--r-- | Private/HALKit/AMD64/HalHardwareMP.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Private/HALKit/AMD64/HalHardwareMP.cpp b/Private/HALKit/AMD64/HalHardwareMP.cpp index 0e9f3022..135222b9 100644 --- a/Private/HALKit/AMD64/HalHardwareMP.cpp +++ b/Private/HALKit/AMD64/HalHardwareMP.cpp @@ -19,20 +19,12 @@ void rt_wakeup_thread(HAL::StackFrame* stack) { HAL::rt_sti(); } -/// @brief Hangs until RCX register is cleared. -/// @param stack -static void __rt_hang_proc(HAL::StackFrame* stack) { - while (stack->Rcx == 1) { - ; - } -} - /// @brief makes thread sleep. /// hooks and hangs thread to prevent code from executing. void rt_hang_thread(HAL::StackFrame* stack) { HAL::rt_cli(); - __rt_hang_proc(stack); + stack->Rcx = 1; HAL::rt_sti(); } |
