From f77a876e0ac2611079ee188933f0f3de222dd08a Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 28 Feb 2024 14:26:58 +0100 Subject: HCoreKrnl\HAL\IDT: Work in progress patch(fix) of HCore interrupt system on x86. Signed-off-by: Amlal El Mahrouss --- Private/HALKit/AMD64/HalHardwareAPIC.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Private/HALKit/AMD64/HalHardwareAPIC.cpp') diff --git a/Private/HALKit/AMD64/HalHardwareAPIC.cpp b/Private/HALKit/AMD64/HalHardwareAPIC.cpp index 4e985f8e..cae54658 100644 --- a/Private/HALKit/AMD64/HalHardwareAPIC.cpp +++ b/Private/HALKit/AMD64/HalHardwareAPIC.cpp @@ -15,12 +15,12 @@ namespace HCore { // @brief wakes up thread. // wakes up thread from hang. void rt_wakeup_thread(HAL::StackFrame* stack) { - __asm__ volatile("cli"); + HAL::rt_cli(); stack->Rbp = stack->R15; stack->Rsi = stack->Rbp; - __asm__ volatile("sti"); + HAL::rt_sti(); } static void __rt_hang_proc(void) { -- cgit v1.2.3