diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-06-24 14:33:40 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-06-24 14:34:18 +0200 |
| commit | 9784f940cf71aef91ccbeb1a11651a83a3eff213 (patch) | |
| tree | bf0294e5ad8161372aaa27cacbfba4eb3e81eda0 /Kernel/Sources | |
| parent | 7738550a55d6fa79447d0298c53fe6320a3135b2 (diff) | |
IMP: UIAccessibilty class, work in progress Core CoreGraphics (GPU/FB
SDK).
REFACTOR: Moved Builtins to Modules/
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Kernel/Sources')
| -rw-r--r-- | Kernel/Sources/DriveManager.cxx | 4 | ||||
| -rw-r--r-- | Kernel/Sources/FS/NewFS.cxx | 8 | ||||
| -rw-r--r-- | Kernel/Sources/FileManager.cxx | 13 | ||||
| -rw-r--r-- | Kernel/Sources/IndexableProperty.cxx | 2 | ||||
| -rw-r--r-- | Kernel/Sources/KeMain.cxx | 6 | ||||
| -rw-r--r-- | Kernel/Sources/Network/NetworkDevice.cxx | 2 | ||||
| -rw-r--r-- | Kernel/Sources/PEFCodeManager.cxx | 13 | ||||
| -rw-r--r-- | Kernel/Sources/ProcessScheduler.cxx | 10 | ||||
| -rw-r--r-- | Kernel/Sources/Property.cxx | 2 | ||||
| -rw-r--r-- | Kernel/Sources/SMPManager.cxx | 2 | ||||
| -rw-r--r-- | Kernel/Sources/ThreadLocalStorage.cxx | 3 |
11 files changed, 32 insertions, 33 deletions
diff --git a/Kernel/Sources/DriveManager.cxx b/Kernel/Sources/DriveManager.cxx index b2266121..23fb99fa 100644 --- a/Kernel/Sources/DriveManager.cxx +++ b/Kernel/Sources/DriveManager.cxx @@ -6,8 +6,8 @@ #include <KernelKit/DebugOutput.hpp> #include <KernelKit/DriveManager.hxx> -#include <Builtins/ATA/ATA.hxx> -#include <Builtins/AHCI/AHCI.hxx> +#include <Modules/ATA/ATA.hxx> +#include <Modules/AHCI/AHCI.hxx> #include <NewKit/Utils.hpp> /// @file DriveManager.cxx diff --git a/Kernel/Sources/FS/NewFS.cxx b/Kernel/Sources/FS/NewFS.cxx index 5c5b50ca..4e212164 100644 --- a/Kernel/Sources/FS/NewFS.cxx +++ b/Kernel/Sources/FS/NewFS.cxx @@ -6,9 +6,9 @@ #ifdef __FSKIT_NEWFS__ -#include <Builtins/AHCI/AHCI.hxx> -#include <Builtins/ATA/ATA.hxx> -#include <Builtins/Flash/Flash.hxx> +#include <Modules/AHCI/AHCI.hxx> +#include <Modules/ATA/ATA.hxx> +#include <Modules/Flash/Flash.hxx> #include <FSKit/NewFS.hxx> #include <KernelKit/HError.hpp> #include <NewKit/Crc32.hpp> @@ -496,7 +496,7 @@ bool NewFSParser::Format(_Input _Output DriveTrait* drive) BootBlockType* epmBoot = (BootBlockType*)bufEpmHdr; - constexpr auto cFsName = "NewFS"; + constexpr auto cFsName = "NewFS"; constexpr auto cBlockName = "Zeta:"; rt_copy_memory(reinterpret_cast<VoidPtr>(const_cast<Char*>(cFsName)), epmBoot->Fs, rt_string_len(cFsName)); diff --git a/Kernel/Sources/FileManager.cxx b/Kernel/Sources/FileManager.cxx index 9f81c260..2c0bd366 100644 --- a/Kernel/Sources/FileManager.cxx +++ b/Kernel/Sources/FileManager.cxx @@ -97,9 +97,10 @@ namespace NewOS } Void NewFilesystemManager::Write(_Input const Char* name, - _Input NodePtr node, _Input VoidPtr data, - _Input Int32 flags, - _Input SizeT size) + _Input NodePtr node, + _Input VoidPtr data, + _Input Int32 flags, + _Input SizeT size) { if (!size || size > kNewFSForkSize) @@ -116,9 +117,9 @@ namespace NewOS } _Output VoidPtr NewFilesystemManager::Read(_Input const Char* name, - _Input NodePtr node, - _Input Int32 flags, - _Input SizeT sz) + _Input NodePtr node, + _Input Int32 flags, + _Input SizeT sz) { if (sz > kNewFSForkSize) return nullptr; diff --git a/Kernel/Sources/IndexableProperty.cxx b/Kernel/Sources/IndexableProperty.cxx index 457e2c53..7e609037 100644 --- a/Kernel/Sources/IndexableProperty.cxx +++ b/Kernel/Sources/IndexableProperty.cxx @@ -29,7 +29,7 @@ namespace NewOS { fFlags |= flag; } - + Void IndexableProperty::RemoveFlag(Int16 flag) { fFlags &= flag; diff --git a/Kernel/Sources/KeMain.cxx b/Kernel/Sources/KeMain.cxx index 3ff754c2..b64d4409 100644 --- a/Kernel/Sources/KeMain.cxx +++ b/Kernel/Sources/KeMain.cxx @@ -8,7 +8,7 @@ ------------------------------------------- */ #include <ArchKit/ArchKit.hpp> -#include <Builtins/GX/GX> +#include <Modules/CoreCG/CoreCG.hxx> #include <CompilerKit/Detail.hxx> #include <FirmwareKit/Handover.hxx> #include <KernelKit/FileManager.hpp> @@ -63,7 +63,7 @@ namespace NewOS::Detail if (catalogDir) { - NewOS::kcout << "newoskrnl: Already here\r"; + NewOS::kcout << "newoskrnl: Already here\r"; delete catalogDir; continue; @@ -186,7 +186,7 @@ namespace NewOS::Detail /// @return void no return value. STATIC NewOS::Void ke_launch_srv(NewOS::Void) { - // load security server. + // load security server. NewOS::PEFLoader secureSrv("C:\\System\\securesrv.exe"); if (!secureSrv.IsLoaded()) diff --git a/Kernel/Sources/Network/NetworkDevice.cxx b/Kernel/Sources/Network/NetworkDevice.cxx index 027613ac..24af10eb 100644 --- a/Kernel/Sources/Network/NetworkDevice.cxx +++ b/Kernel/Sources/Network/NetworkDevice.cxx @@ -27,7 +27,7 @@ namespace NewOS if (rt_string_len(strView) > cNetworkNameLen) return false; - rt_copy_memory((VoidPtr)strView, + rt_copy_memory((VoidPtr)strView, (VoidPtr)this->fNetworkName, rt_string_len(strView)); return true; diff --git a/Kernel/Sources/PEFCodeManager.cxx b/Kernel/Sources/PEFCodeManager.cxx index 12ca9b10..09f6e90e 100644 --- a/Kernel/Sources/PEFCodeManager.cxx +++ b/Kernel/Sources/PEFCodeManager.cxx @@ -86,7 +86,7 @@ namespace NewOS fBad = true; ke_delete_ke_heap(fCachedBlob); - + fCachedBlob = nullptr; } } @@ -121,18 +121,15 @@ namespace NewOS switch (kind) { - case kPefCode: - { + case kPefCode: { errOrSym = StringBuilder::Construct(cContainerKinds[0]); // code symbol. break; } - case kPefData: - { + case kPefData: { errOrSym = StringBuilder::Construct(cContainerKinds[1]); // data symbol. break; } - case kPefZero: - { + case kPefZero: { errOrSym = StringBuilder::Construct(cContainerKinds[2]); // block starting symbol. break; } @@ -177,7 +174,7 @@ namespace NewOS } } } - + ke_delete_ke_heap(blob); return nullptr; } diff --git a/Kernel/Sources/ProcessScheduler.cxx b/Kernel/Sources/ProcessScheduler.cxx index aae69386..315dc07a 100644 --- a/Kernel/Sources/ProcessScheduler.cxx +++ b/Kernel/Sources/ProcessScheduler.cxx @@ -64,7 +64,7 @@ namespace NewOS if (this->FreeMemory < 1) { DbgLastError() = kErrorHeapOutOfMemory; - + /* we're going out of memory */ this->Crash(); @@ -208,7 +208,7 @@ namespace NewOS ke_new_ke_heap(sizeof(HAL::StackFrame), true, false)); MUST_PASS(process.Leak().StackFrame); - + process.Leak().Status = ProcessStatus::kRunning; process.Leak().ProcessId = (mTeam.AsArray().Count() - 1); @@ -237,7 +237,7 @@ namespace NewOS SizeT ProcessScheduler::Run() noexcept { SizeT process_index = 0; //! we store this guy to tell the scheduler how many - //! things we have scheduled. + //! things we have scheduled. for (; process_index < mTeam.AsArray().Count(); ++process_index) { @@ -256,7 +256,7 @@ namespace NewOS // tell helper to find a core to schedule on. ProcessHelper::Switch(mTeam.AsRef().Leak().StackFrame, mTeam.AsRef().Leak().ProcessId); - + kcout << unwrapped_process.Name << ": process switched.\r"; } else @@ -332,7 +332,7 @@ namespace NewOS SizeT ProcessHelper::StartScheduling() { auto& process_ref = ProcessScheduler::The().Leak(); - SizeT ret = process_ref.Run(); + SizeT ret = process_ref.Run(); return ret; } diff --git a/Kernel/Sources/Property.cxx b/Kernel/Sources/Property.cxx index b58de469..285d7aaa 100644 --- a/Kernel/Sources/Property.cxx +++ b/Kernel/Sources/Property.cxx @@ -9,7 +9,7 @@ namespace NewOS { Property::Property(const StringView& sw) - : fName(sw) + : fName(sw) { kcout << "Property: created: " << sw.CData() << endl; } diff --git a/Kernel/Sources/SMPManager.cxx b/Kernel/Sources/SMPManager.cxx index 149b1334..f00fbee1 100644 --- a/Kernel/Sources/SMPManager.cxx +++ b/Kernel/Sources/SMPManager.cxx @@ -103,7 +103,7 @@ namespace NewOS delete fStack; fStack = nullptr; } - + fStack = stack; rt_do_context_switch(fStack); diff --git a/Kernel/Sources/ThreadLocalStorage.cxx b/Kernel/Sources/ThreadLocalStorage.cxx index 4d6fec14..a48b942c 100644 --- a/Kernel/Sources/ThreadLocalStorage.cxx +++ b/Kernel/Sources/ThreadLocalStorage.cxx @@ -46,7 +46,8 @@ Boolean tls_check_tib(ThreadInformationBlock* tib) */ EXTERN_C Void tls_check_syscall_impl(NewOS::VoidPtr TIB) noexcept { - if (!TIB) return; + if (!TIB) + return; ThreadInformationBlock* tib = (ThreadInformationBlock*)TIB; |
