From 0266d8058990a496b935abd76417abcfe4e9cffd Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 18 May 2025 15:15:52 +0200 Subject: dev(sched): Improvements and work in progress fixes. what? - The main algorithm got improved for real time tasks, and SMP usage. - The SMP usage was present before, I just reintroduced it after realizing that it won't scale well from what I have right now. - Also removed weird implementations quirks from previous sketch. - Such as the core 0 being reserved for the boot core. - Also moved FS init code after IDT initalization. - To avoid weird FS format behavior. - Wrap HPET signature in a macro. next? - Work on the HAL's userspace transition mechanism. Signed-off-by: Amlal El Mahrouss --- dev/kernel/src/ACPIFactoryInterface.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'dev/kernel/src/ACPIFactoryInterface.cc') diff --git a/dev/kernel/src/ACPIFactoryInterface.cc b/dev/kernel/src/ACPIFactoryInterface.cc index a76caff2..ded49587 100644 --- a/dev/kernel/src/ACPIFactoryInterface.cc +++ b/dev/kernel/src/ACPIFactoryInterface.cc @@ -14,13 +14,12 @@ namespace Kernel { ErrorOr ACPIFactoryInterface::Find(const Char* signature) { MUST_PASS(this->fRsdp); - if (!signature) return ErrorOr{-1}; - - if (*signature == 0) return ErrorOr{-1}; + if (!signature) return ErrorOr{nullptr}; + if (*signature == 0) return ErrorOr{nullptr}; RSDP* rsp_ptr = reinterpret_cast(this->fRsdp); - if (rsp_ptr->Revision <= 1) return ErrorOr{-1}; + if (rsp_ptr->Revision < 1) return ErrorOr{nullptr}; RSDT* xsdt = reinterpret_cast(rsp_ptr->RsdtAddress); -- cgit v1.2.3