From 1efed3cbec879134d55aee8e13c6bbc6da9b6ef6 Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Sat, 15 Jun 2024 09:38:25 +0200 Subject: MHR-31: Changes related to ARM64/AMD64: This is the last commit regarding AMD64 support, focusing on ARM64 now. Signed-off-by: Amlal EL Mahrouss --- Kernel/HALKit/AMD64/HalCoreMultiProcessingAMD64.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Kernel/HALKit/AMD64/HalCoreMultiProcessingAMD64.cpp') diff --git a/Kernel/HALKit/AMD64/HalCoreMultiProcessingAMD64.cpp b/Kernel/HALKit/AMD64/HalCoreMultiProcessingAMD64.cpp index 37a681ab..26773640 100644 --- a/Kernel/HALKit/AMD64/HalCoreMultiProcessingAMD64.cpp +++ b/Kernel/HALKit/AMD64/HalCoreMultiProcessingAMD64.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #define kAPIC_ICR_Low 0x300 #define kAPIC_ICR_High 0x310 @@ -184,11 +185,7 @@ namespace NewOS::HAL { Semaphore sem; - while (sem.IsLocked()) - { - } - - sem.Lock(&ProcessScheduler::The().Leak().GetCurrent().Leak()); + sem.LockOrWait(&ProcessScheduler::The().Leak().GetCurrent().Leak(), Seconds(5)); cFramePtr = stackFrame; -- cgit v1.2.3