From f30470c40229806a33c914ebdd1dbdf037c9698d Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 13 Apr 2025 08:04:32 +0200 Subject: dev, scheduler, ahci, dev: Refactor scheduler, and fix minor mistakes. Add kDeviceTypeATA in DeviceMgr.h, making NeKernel aware that ATA devices can exist too. The scheduler now won't have to reimplement new classes, I refactor the names to signal that, and they're already generic enough to signal that. The AHCI-Generic driver got cleaned up of any irrelevant code, such as aligning the newly allocated pointer. Signed-off-by: Amlal El Mahrouss --- dev/kernel/KernelKit/BinaryMutex.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dev/kernel/KernelKit/BinaryMutex.h') diff --git a/dev/kernel/KernelKit/BinaryMutex.h b/dev/kernel/KernelKit/BinaryMutex.h index ec1e355d..675396fd 100644 --- a/dev/kernel/KernelKit/BinaryMutex.h +++ b/dev/kernel/KernelKit/BinaryMutex.h @@ -12,9 +12,9 @@ namespace Kernel { - class UserProcess; + class Process; - typedef UserProcess& UserProcessRef; + typedef Process& UserProcessRef; /// @brief Access control class, which locks a task until one is done. class BinaryMutex final @@ -31,8 +31,8 @@ namespace Kernel BOOL WaitForProcess(const Int16& sec) noexcept; public: - bool Lock(UserProcess& process); - bool LockOrWait(UserProcess& process, TimerInterface* timer); + bool Lock(Process& process); + bool LockOrWait(Process& process, TimerInterface* timer); public: NE_COPY_DEFAULT(BinaryMutex) -- cgit v1.2.3