From 0ae4062bfe9936cc9fd2c7bb924442480b067d93 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 18 Apr 2024 23:10:15 +0200 Subject: MHR-5: initial commit. Signed-off-by: Amlal El Mahrouss --- Private/HALKit/AMD64/HalHardwareMP.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'Private/HALKit/AMD64/HalHardwareMP.cpp') 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(); } -- cgit v1.2.3