diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-29 16:32:49 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-29 16:34:06 +0100 |
| commit | f3992c78790af42c53ed149cf04751261393d8e8 (patch) | |
| tree | 065fc8b2c6bb9305aefe5e4c2bf585b6cc20dafe | |
| parent | 1a22cb4fd330bf01f1c94bd12fcad9ab278b4f80 (diff) | |
Kernel: Pre-Release
- Kernel
- Bootloader
Working on AHCI support, AHCI is very important to bring fast I/O
support, ACPI and APIC is also in WiP for AMD64 HAL this time.
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
149 files changed, 759 insertions, 1249 deletions
diff --git a/Private/ArchKit/ArchKit.hpp b/Private/ArchKit/ArchKit.hpp index a62cc4bd..17b70aa7 100644 --- a/Private/ArchKit/ArchKit.hpp +++ b/Private/ArchKit/ArchKit.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once @@ -57,12 +54,14 @@ bool ke_init_hal(); #define kKernelMaxSystemCalls (256) -extern HCore::Array<void (*)(HCore::HAL::StackFrame *), +typedef HCore::Void (*rt_syscall_proc)(HCore::HAL::StackFramePtr); + +extern HCore::Array<rt_syscall_proc, kKernelMaxSystemCalls> kSyscalls; EXTERN_C HCore::Void rt_wait_400ns(); -EXTERN_C HCore::Void rt_syscall_handle(HCore::HAL::StackFramePtr stackFrame); +EXTERN_C HCore::Void ATTRIBUTE(interrupt) rt_syscall_handle(HCore::HAL::StackFramePtr stackFrame); EXTERN_C HCore::HAL::StackFramePtr rt_get_current_context(); EXTERN_C HCore::Void rt_do_context_switch(HCore::HAL::StackFramePtr stackFrame); diff --git a/Private/CFKit/GUIDWizard.hpp b/Private/CFKit/GUIDWizard.hpp index c45110e7..13cc668b 100644 --- a/Private/CFKit/GUIDWizard.hpp +++ b/Private/CFKit/GUIDWizard.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/CFKit/GUIDWrapper.hpp b/Private/CFKit/GUIDWrapper.hpp index 41961749..97125fc9 100644 --- a/Private/CFKit/GUIDWrapper.hpp +++ b/Private/CFKit/GUIDWrapper.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/CFKit/Property.hpp b/Private/CFKit/Property.hpp index cffdb84d..e5d7fae0 100644 --- a/Private/CFKit/Property.hpp +++ b/Private/CFKit/Property.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #ifndef _INC_PLIST_HPP__ #define _INC_PLIST_HPP__ diff --git a/Private/CFKit/URL.hpp b/Private/CFKit/URL.hpp index 046830ba..20375c53 100644 --- a/Private/CFKit/URL.hpp +++ b/Private/CFKit/URL.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #ifndef _INC_URL_HPP__ #define _INC_URL_HPP__ diff --git a/Private/CRT/__cxxkit_defines.hxx b/Private/CRT/__cxxkit_defines.hxx index e1c70aac..1558fbe9 100644 --- a/Private/CRT/__cxxkit_defines.hxx +++ b/Private/CRT/__cxxkit_defines.hxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #ifndef __CXXKIT_DEF__ #define __CXXKIT_DEF__ diff --git a/Private/CompilerKit/CompilerKit.hpp b/Private/CompilerKit/CompilerKit.hpp index 2bf71c01..5fde300e 100644 --- a/Private/CompilerKit/CompilerKit.hpp +++ b/Private/CompilerKit/CompilerKit.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #ifndef _INC_CL_HPP #define _INC_CL_HPP diff --git a/Private/FSKit/Defines.hpp b/Private/FSKit/Defines.hpp index 1d64be5d..73c422be 100644 --- a/Private/FSKit/Defines.hpp +++ b/Private/FSKit/Defines.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/FSKit/IndexableProperty.hxx b/Private/FSKit/IndexableProperty.hxx index 553eb945..1dd09b7d 100644 --- a/Private/FSKit/IndexableProperty.hxx +++ b/Private/FSKit/IndexableProperty.hxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/FSKit/NewFSIndexer.hxx b/Private/FSKit/NewFSIndexer.hxx index bb6c9f99..e66e4913 100644 --- a/Private/FSKit/NewFSIndexer.hxx +++ b/Private/FSKit/NewFSIndexer.hxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/HALKit/AMD64/HalACPIManager.cpp b/Private/HALKit/AMD64/HalACPIManager.cpp index 6cac4eca..db9263a1 100644 --- a/Private/HALKit/AMD64/HalACPIManager.cpp +++ b/Private/HALKit/AMD64/HalACPIManager.cpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <HALKit/AMD64/ACPI/ACPIManager.hpp> #include <HALKit/AMD64/Processor.hpp> diff --git a/Private/HALKit/AMD64/HalCoreInterruptHandler.cpp b/Private/HALKit/AMD64/HalCoreInterruptHandler.cpp deleted file mode 100644 index c35d52cc..00000000 --- a/Private/HALKit/AMD64/HalCoreInterruptHandler.cpp +++ /dev/null @@ -1,42 +0,0 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ - -#include <ArchKit/ArchKit.hpp> -#include <NewKit/String.hpp> - -/// BUGS = 1 - -/// @brief System call interrupt (like DOS and NT) -#define kKernelSyscallInterrupt (0x21) - -EXTERN_C { - HCore::Void rt_handle_interrupts(HCore::HAL::StackFramePtr stack) { - HCore::kcout << "HCoreKrnl: Interrupting Hart...\r\n"; - - switch (stack->IntNum) { - case kKernelSyscallInterrupt: { - HCore::kcout << "HCoreKrnl: System call raised, checking.." - << HCore::end_line(); - rt_syscall_handle(stack); - break; - } - - default: - break; - } - - if ((stack->IntNum - 32) >= 12) { - HCore::kcout << "HCoreKrnl: EOI Master PIC...\r\n"; - HCore::HAL::Out8(0xA0, 0x20); - } - - HCore::kcout << "HCoreKrnl: EOI Slave PIC...\r\n"; - HCore::HAL::Out8(0x20, 0x20); - } -}
\ No newline at end of file diff --git a/Private/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cpp b/Private/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cpp index 486c1513..90c29ea3 100644 --- a/Private/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cpp +++ b/Private/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <ArchKit/ArchKit.hpp> #include <KernelKit/ProcessManager.hpp> diff --git a/Private/HALKit/AMD64/HalCoreMultiProcessingAMD64.cpp b/Private/HALKit/AMD64/HalCoreMultiProcessingAMD64.cpp index 73c995c4..98ddb646 100644 --- a/Private/HALKit/AMD64/HalCoreMultiProcessingAMD64.cpp +++ b/Private/HALKit/AMD64/HalCoreMultiProcessingAMD64.cpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <HALKit/AMD64/ACPI/ACPIManager.hpp> #include <HALKit/AMD64/Processor.hpp> diff --git a/Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp b/Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp deleted file mode 100644 index 7d0178fe..00000000 --- a/Private/HALKit/AMD64/HalCoreSyscallHandlerAMD64.cpp +++ /dev/null @@ -1,25 +0,0 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ - -#include <ArchKit/ArchKit.hpp> -#include <HALKit/AMD64/Processor.hpp> -#include <KernelKit/PermissionSelector.hxx> - -typedef HCore::Void (*rt_syscall_proc)(HCore::HAL::StackFramePtr); - -HCore::Array<rt_syscall_proc, kKernelMaxSystemCalls> kSyscalls; - -/// @brief Interrupt system call handler. -EXTERN_C void rt_syscall_handle(HCore::HAL::StackFramePtr stack) { - if (!stack) return; - - if (stack->Rcx < kKernelMaxSystemCalls && kSyscalls[stack->Rcx] != 0) { - (kSyscalls[stack->Rcx].Leak().Leak())(stack); - } -} diff --git a/Private/HALKit/AMD64/HalDebugOutput.cxx b/Private/HALKit/AMD64/HalDebugOutput.cxx index 4a949fc1..fb80365e 100644 --- a/Private/HALKit/AMD64/HalDebugOutput.cxx +++ b/Private/HALKit/AMD64/HalDebugOutput.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <ArchKit/ArchKit.hpp> #include <KernelKit/DebugOutput.hpp> @@ -58,7 +55,7 @@ bool serial_init() noexcept { } } // namespace Detail -void ke_io_print(const char* bytes) { +EXTERN_C void ke_io_print(const char* bytes) { Detail::serial_init(); if (!bytes || Detail::kState != kStateReady) return; diff --git a/Private/HALKit/AMD64/HalDebugPort.cxx b/Private/HALKit/AMD64/HalDebugPort.cxx index 510aa421..326bb8bc 100644 --- a/Private/HALKit/AMD64/HalDebugPort.cxx +++ b/Private/HALKit/AMD64/HalDebugPort.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ //! @file DebuggerPort.cxx //! @brief UART debug via packets. diff --git a/Private/HALKit/AMD64/HalDescriptorLoader.cpp b/Private/HALKit/AMD64/HalDescriptorLoader.cpp index fb41f654..8552b958 100644 --- a/Private/HALKit/AMD64/HalDescriptorLoader.cpp +++ b/Private/HALKit/AMD64/HalDescriptorLoader.cpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <ArchKit/ArchKit.hpp> @@ -25,6 +22,28 @@ STATIC ::HCore::Detail::AMD64::InterruptDescriptorAMD64 kInterruptVectorTable[kKernelIdtSize]; void IDTLoader::Load(Register64 &idt) { + volatile ::HCore::UIntPtr **baseIdt = (volatile ::HCore::UIntPtr **)idt.Base; + + MUST_PASS(baseIdt[0]); + + for (UInt16 i = 0; i < kKernelIdtSize; i++) { + kInterruptVectorTable[i].Selector = kGdtCodeSelector; + kInterruptVectorTable[i].Ist = 0x0; + kInterruptVectorTable[i].TypeAttributes = kInterruptGate; + kInterruptVectorTable[i].OffsetLow = ((UIntPtr)baseIdt[i] & 0xFFFF); + kInterruptVectorTable[i].OffsetMid = (((UIntPtr)baseIdt[i] >> 16) & 0xFFFF); + kInterruptVectorTable[i].OffsetHigh = + (((UIntPtr)baseIdt[i] >> 32) & 0xFFFFFFFF); + kInterruptVectorTable[i].Zero = 0x0; + } + + kRegIdt.Base = (UIntPtr)kInterruptVectorTable; + kRegIdt.Limit = sizeof(::HCore::Detail::AMD64::InterruptDescriptorAMD64) * + kKernelIdtSize - + 1; + + rt_load_idt(kRegIdt); + UInt8 a1, a2; a1 = HAL::In8(0x21); // save masks @@ -50,28 +69,6 @@ void IDTLoader::Load(Register64 &idt) { HAL::Out8(0x21, a1); HAL::rt_wait_400ns(); HAL::Out8(0xA1, a2); - - volatile ::HCore::UIntPtr **baseIdt = (volatile ::HCore::UIntPtr **)idt.Base; - - MUST_PASS(baseIdt[0]); - - for (UInt16 i = 0; i < kKernelIdtSize; i++) { - kInterruptVectorTable[i].Selector = kGdtCodeSelector; - kInterruptVectorTable[i].Ist = 0x0; - kInterruptVectorTable[i].TypeAttributes = kInterruptGate; - kInterruptVectorTable[i].OffsetLow = ((UIntPtr)baseIdt[i] & 0xFFFF); - kInterruptVectorTable[i].OffsetMid = (((UIntPtr)baseIdt[i] >> 16) & 0xFFFF); - kInterruptVectorTable[i].OffsetHigh = - (((UIntPtr)baseIdt[i] >> 32) & 0xFFFFFFFF); - kInterruptVectorTable[i].Zero = 0x0; - } - - kRegIdt.Base = (UIntPtr)kInterruptVectorTable; - kRegIdt.Limit = sizeof(::HCore::Detail::AMD64::InterruptDescriptorAMD64) * - kKernelIdtSize - - 1; - - rt_load_idt(kRegIdt); } void GDTLoader::Load(Ref<RegisterGDT> &gdt) { GDTLoader::Load(gdt.Leak()); } diff --git a/Private/HALKit/AMD64/HalHardwareAPIC.cpp b/Private/HALKit/AMD64/HalHardwareAPIC.cpp index d587975e..d2b99ed3 100644 --- a/Private/HALKit/AMD64/HalHardwareAPIC.cpp +++ b/Private/HALKit/AMD64/HalHardwareAPIC.cpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <ArchKit/ArchKit.hpp> @@ -23,17 +20,18 @@ void rt_wakeup_thread(HAL::StackFrame* stack) { } static void __rt_hang_proc(void) { - while (1) - ; + while (1) { + + } } // @brief makes thread sleep. // hooks and hangs thread to prevent code from executing. void rt_hang_thread(HAL::StackFrame* stack) { - __asm__ volatile("cli"); + HAL::rt_cli(); // TODO - __asm__ volatile("sti"); + HAL::rt_sti(); } } // namespace HCore diff --git a/Private/HALKit/AMD64/HalInterruptRouting.asm b/Private/HALKit/AMD64/HalInterruptRouting.asm index cd3c8bcf..84429482 100644 --- a/Private/HALKit/AMD64/HalInterruptRouting.asm +++ b/Private/HALKit/AMD64/HalInterruptRouting.asm @@ -81,9 +81,6 @@ IntNormal 31 ;; this one is doing a POST for us. ;; testing interrupts. _ke_power_on_self_test: - mov rcx, 0x00 - mov rdx, 0x01 - int 0x21 int 0x21 int 0x21 diff --git a/Private/HALKit/AMD64/HalKernelMain.cxx b/Private/HALKit/AMD64/HalKernelMain.cxx index 27c12509..d6b87bb4 100644 --- a/Private/HALKit/AMD64/HalKernelMain.cxx +++ b/Private/HALKit/AMD64/HalKernelMain.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <ArchKit/ArchKit.hpp> #include <Drivers/PS2/Mouse.hxx> @@ -98,9 +95,8 @@ EXTERN_C void RuntimeMain( /// START POST Detail::_ke_power_on_self_test(); - HCore::ProcessManager::Shared().Leak().GetCurrent().Leak().Crash(); - - HCore::kcout << "HCoreKrnl: POST done, everything is OK...\r\n"; + + HCore::kcout << "HCoreKrnl: Everything is OK...\r\n"; /// END POST @@ -109,14 +105,10 @@ EXTERN_C void RuntimeMain( /// We already have an install of HCore. if (HandoverHeader->f_Bootloader == kInstalledMedia) { - // Open file from first hard-drive. - HCore::PEFLoader img("A:/System/HCoreServer.exe"); - - /// Run the server executive. - HCore::Utils::execute_from_image(img); + /// TODO: Parse system configuration. } else { // Open file from first hard-drive. - HCore::PEFLoader img("A:/System/HCoreInstallWizard.exe"); + HCore::PEFLoader img("/System/HCoreInstallWizard.exe"); /// Run the server executive. HCore::Utils::execute_from_image(img); diff --git a/Private/HALKit/AMD64/HalPageAlloc.cpp b/Private/HALKit/AMD64/HalPageAlloc.cpp index 30996d19..a52eb646 100644 --- a/Private/HALKit/AMD64/HalPageAlloc.cpp +++ b/Private/HALKit/AMD64/HalPageAlloc.cpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <ArchKit/ArchKit.hpp> #include <HALKit/AMD64/HalPageAlloc.hpp> diff --git a/Private/HALKit/AMD64/HalPageAlloc.hpp b/Private/HALKit/AMD64/HalPageAlloc.hpp index 8717f3db..f6b57a6d 100644 --- a/Private/HALKit/AMD64/HalPageAlloc.hpp +++ b/Private/HALKit/AMD64/HalPageAlloc.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/HALKit/AMD64/HalProcessor.cpp b/Private/HALKit/AMD64/HalProcessor.cpp index 80efed3a..0c246a9d 100644 --- a/Private/HALKit/AMD64/HalProcessor.cpp +++ b/Private/HALKit/AMD64/HalProcessor.cpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <HALKit/AMD64/Processor.hpp> diff --git a/Private/HALKit/AMD64/HalSMPCore.cxx b/Private/HALKit/AMD64/HalSMPCore.cxx index bff14236..9e98fb3c 100644 --- a/Private/HALKit/AMD64/HalSMPCore.cxx +++ b/Private/HALKit/AMD64/HalSMPCore.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <KernelKit/ProcessManager.hpp> diff --git a/Private/HALKit/AMD64/Hypervisor.hpp b/Private/HALKit/AMD64/Hypervisor.hpp index c1e5ddef..07d69e02 100644 --- a/Private/HALKit/AMD64/Hypervisor.hpp +++ b/Private/HALKit/AMD64/Hypervisor.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/HALKit/AMD64/PCI/Database.cpp b/Private/HALKit/AMD64/PCI/Database.cpp deleted file mode 100644 index 0d12cd8a..00000000 --- a/Private/HALKit/AMD64/PCI/Database.cpp +++ /dev/null @@ -1,12 +0,0 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ - -#include <KernelKit/PCI/Database.hpp> - -namespace HCore {} diff --git a/Private/HALKit/AMD64/PCI/Database.cxx b/Private/HALKit/AMD64/PCI/Database.cxx new file mode 100644 index 00000000..7b78079d --- /dev/null +++ b/Private/HALKit/AMD64/PCI/Database.cxx @@ -0,0 +1,9 @@ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ + +#include <KernelKit/PCI/Database.hpp> + +namespace HCore {} diff --git a/Private/HALKit/AMD64/PCI/Device.cpp b/Private/HALKit/AMD64/PCI/Device.cxx index b353d2a6..2b1ec3a5 100644 --- a/Private/HALKit/AMD64/PCI/Device.cpp +++ b/Private/HALKit/AMD64/PCI/Device.cxx @@ -1,16 +1,13 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <ArchKit/ArchKit.hpp> #include <KernelKit/PCI/Device.hpp> -HCore::UInt LumiaPCIReadRaw(HCore::UInt bar, HCore::UShort bus, +HCore::UInt HCorePCIReadRaw(HCore::UInt bar, HCore::UShort bus, HCore::UShort dev, HCore::UShort fun) { HCore::UInt target = 0x80000000 | ((HCore::UInt)bus << 16) | ((HCore::UInt)dev << 11) | ((HCore::UInt)fun << 8) | @@ -22,7 +19,7 @@ HCore::UInt LumiaPCIReadRaw(HCore::UInt bar, HCore::UShort bus, return HCore::HAL::In32((HCore::UShort)HCore::PCI::PciConfigKind::ConfigData); } -void LumiaPCISetCfgTarget(HCore::UInt bar, HCore::UShort bus, HCore::UShort dev, +void HCorePCISetCfgTarget(HCore::UInt bar, HCore::UShort bus, HCore::UShort dev, HCore::UShort fun) { HCore::UInt target = 0x80000000 | ((HCore::UInt)bus << 16) | ((HCore::UInt)dev << 11) | ((HCore::UInt)fun << 8) | @@ -39,7 +36,7 @@ Device::Device(UShort bus, UShort device, UShort func, UShort bar) Device::~Device() {} UInt Device::Read(UInt bar, Size sz) { - LumiaPCISetCfgTarget(bar, m_Bus, m_Device, m_Function); + HCorePCISetCfgTarget(bar, m_Bus, m_Device, m_Function); if (sz == 4) return HAL::In32((UShort)PciConfigKind::ConfigData + (m_Bar & 3)); @@ -51,7 +48,7 @@ UInt Device::Read(UInt bar, Size sz) { } void Device::Write(UInt bar, UIntPtr data, Size sz) { - LumiaPCISetCfgTarget(bar, m_Bus, m_Device, m_Function); + HCorePCISetCfgTarget(bar, m_Bus, m_Device, m_Function); if (sz == 4) HAL::Out32((UShort)PciConfigKind::ConfigData + (m_Bar & 3), (UInt)data); @@ -62,31 +59,31 @@ void Device::Write(UInt bar, UIntPtr data, Size sz) { } UShort Device::DeviceId() { - return (UShort)(LumiaPCIReadRaw(0x0 >> 16, m_Bus, m_Device, m_Function)); + return (UShort)(HCorePCIReadRaw(0x0 >> 16, m_Bus, m_Device, m_Function)); } UShort Device::VendorId() { - return (UShort)(LumiaPCIReadRaw(0x0, m_Bus, m_Device, m_Function) >> 16); + return (UShort)(HCorePCIReadRaw(0x0, m_Bus, m_Device, m_Function) >> 16); } UShort Device::InterfaceId() { - return (UShort)(LumiaPCIReadRaw(0x0, m_Bus, m_Device, m_Function) >> 16); + return (UShort)(HCorePCIReadRaw(0x0, m_Bus, m_Device, m_Function) >> 16); } UChar Device::Class() { - return (UChar)(LumiaPCIReadRaw(0x08, m_Bus, m_Device, m_Function) >> 24); + return (UChar)(HCorePCIReadRaw(0x08, m_Bus, m_Device, m_Function) >> 24); } UChar Device::Subclass() { - return (UChar)(LumiaPCIReadRaw(0x08, m_Bus, m_Device, m_Function) >> 16); + return (UChar)(HCorePCIReadRaw(0x08, m_Bus, m_Device, m_Function) >> 16); } UChar Device::ProgIf() { - return (UChar)(LumiaPCIReadRaw(0x08, m_Bus, m_Device, m_Function) >> 8); + return (UChar)(HCorePCIReadRaw(0x08, m_Bus, m_Device, m_Function) >> 8); } UChar Device::HeaderType() { - return (UChar)(LumiaPCIReadRaw(0xC, m_Bus, m_Device, m_Function) >> 16); + return (UChar)(HCorePCIReadRaw(0xC, m_Bus, m_Device, m_Function) >> 16); } void Device::EnableMmio() { diff --git a/Private/HALKit/AMD64/PCI/Dma.cpp b/Private/HALKit/AMD64/PCI/Dma.cxx index 14e16163..5b754ea4 100644 --- a/Private/HALKit/AMD64/PCI/Dma.cpp +++ b/Private/HALKit/AMD64/PCI/Dma.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <KernelKit/PCI/Dma.hpp> diff --git a/Private/HALKit/AMD64/PCI/Express.cpp b/Private/HALKit/AMD64/PCI/Express.cpp deleted file mode 100644 index 812d1401..00000000 --- a/Private/HALKit/AMD64/PCI/Express.cpp +++ /dev/null @@ -1,12 +0,0 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ - -#include <KernelKit/PCI/Express.hpp> - -namespace HCore {} diff --git a/Private/HALKit/AMD64/PCI/Express.cxx b/Private/HALKit/AMD64/PCI/Express.cxx new file mode 100644 index 00000000..9633711e --- /dev/null +++ b/Private/HALKit/AMD64/PCI/Express.cxx @@ -0,0 +1,9 @@ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ + +#include <KernelKit/PCI/Express.hpp> + +namespace HCore {} diff --git a/Private/HALKit/AMD64/PCI/IO.cpp b/Private/HALKit/AMD64/PCI/IO.cpp deleted file mode 100644 index 7ebae15a..00000000 --- a/Private/HALKit/AMD64/PCI/IO.cpp +++ /dev/null @@ -1,10 +0,0 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ - -#include <KernelKit/PCI/IO.hpp> diff --git a/Private/HALKit/AMD64/PCI/IO.cxx b/Private/HALKit/AMD64/PCI/IO.cxx new file mode 100644 index 00000000..7bf6adb0 --- /dev/null +++ b/Private/HALKit/AMD64/PCI/IO.cxx @@ -0,0 +1,7 @@ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ + +#include <KernelKit/PCI/IO.hpp> diff --git a/Private/HALKit/AMD64/PCI/Iterator.cpp b/Private/HALKit/AMD64/PCI/Iterator.cxx index fb90dfcb..98cb8016 100644 --- a/Private/HALKit/AMD64/PCI/Iterator.cpp +++ b/Private/HALKit/AMD64/PCI/Iterator.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <KernelKit/PCI/Iterator.hpp> diff --git a/Private/HALKit/AMD64/PCI/PCI.cpp b/Private/HALKit/AMD64/PCI/PCI.cpp deleted file mode 100644 index d13b018a..00000000 --- a/Private/HALKit/AMD64/PCI/PCI.cpp +++ /dev/null @@ -1,10 +0,0 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ - -#include <KernelKit/PCI/PCI.hpp> diff --git a/Private/HALKit/AMD64/PCI/PCI.cxx b/Private/HALKit/AMD64/PCI/PCI.cxx new file mode 100644 index 00000000..9d67445d --- /dev/null +++ b/Private/HALKit/AMD64/PCI/PCI.cxx @@ -0,0 +1,7 @@ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ + +#include <KernelKit/PCI/PCI.hpp> diff --git a/Private/HALKit/AXP/CoreSyscallHandlerDEC.cpp b/Private/HALKit/AXP/CoreSyscallHandlerDEC.cpp index 51b1fa0d..49a0062c 100644 --- a/Private/HALKit/AXP/CoreSyscallHandlerDEC.cpp +++ b/Private/HALKit/AXP/CoreSyscallHandlerDEC.cpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <ArchKit/ArchKit.hpp> #include <HALKit/Alpha/Processor.hpp> diff --git a/Private/HALKit/AXP/Processor.hpp b/Private/HALKit/AXP/Processor.hpp index e6a00db3..a3f4030f 100644 --- a/Private/HALKit/AXP/Processor.hpp +++ b/Private/HALKit/AXP/Processor.hpp @@ -1,10 +1,7 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once
\ No newline at end of file diff --git a/Private/HALKit/PowerPC/HalCoreContextSwitchPowerPC.s b/Private/HALKit/PowerPC/HalCoreContextSwitchPowerPC.s index 5ca6b5ef..a6c2a90f 100644 --- a/Private/HALKit/PowerPC/HalCoreContextSwitchPowerPC.s +++ b/Private/HALKit/PowerPC/HalCoreContextSwitchPowerPC.s @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ .align 4 .type name, @function diff --git a/Private/HALKit/PowerPC/HalCoreSyscallHandlerPowerPC.cpp b/Private/HALKit/PowerPC/HalCoreSyscallHandlerPowerPC.cpp index 71554dc4..eac04e47 100644 --- a/Private/HALKit/PowerPC/HalCoreSyscallHandlerPowerPC.cpp +++ b/Private/HALKit/PowerPC/HalCoreSyscallHandlerPowerPC.cpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <ArchKit/ArchKit.hpp> #include <NewKit/Array.hpp> diff --git a/Private/HALKit/PowerPC/HalHardware.cxx b/Private/HALKit/PowerPC/HalHardware.cxx index e6c0f85c..340f515e 100644 --- a/Private/HALKit/PowerPC/HalHardware.cxx +++ b/Private/HALKit/PowerPC/HalHardware.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <HALKit/PowerPC/Processor.hpp> #include <KernelKit/DebugOutput.hpp> diff --git a/Private/HALKit/PowerPC/HalThread.cxx b/Private/HALKit/PowerPC/HalThread.cxx index 0c6cfa4b..4b8ef8d8 100644 --- a/Private/HALKit/PowerPC/HalThread.cxx +++ b/Private/HALKit/PowerPC/HalThread.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <HALKit/PowerPC/Processor.hpp> #include <KernelKit/DebugOutput.hpp> diff --git a/Private/HALKit/PowerPC/Processor.hpp b/Private/HALKit/PowerPC/Processor.hpp index b1673f97..e5f04455 100644 --- a/Private/HALKit/PowerPC/Processor.hpp +++ b/Private/HALKit/PowerPC/Processor.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/KernelKit/DebugOutput.hpp b/Private/KernelKit/DebugOutput.hpp index 4b077599..b9930cb2 100644 --- a/Private/KernelKit/DebugOutput.hpp +++ b/Private/KernelKit/DebugOutput.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/KernelKit/Defines.hpp b/Private/KernelKit/Defines.hpp index 5ce033a4..b3fb8b8d 100644 --- a/Private/KernelKit/Defines.hpp +++ b/Private/KernelKit/Defines.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/KernelKit/DeviceManager.hpp b/Private/KernelKit/DeviceManager.hpp index 156e76b9..9efd51a1 100644 --- a/Private/KernelKit/DeviceManager.hpp +++ b/Private/KernelKit/DeviceManager.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ /* ------------------------------------------- diff --git a/Private/KernelKit/DriveManager.hpp b/Private/KernelKit/DriveManager.hpp index f0cd76e6..a9e26fd3 100644 --- a/Private/KernelKit/DriveManager.hpp +++ b/Private/KernelKit/DriveManager.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #ifndef __DRIVE_MANAGER__ #define __DRIVE_MANAGER__ diff --git a/Private/KernelKit/FileManager.hpp b/Private/KernelKit/FileManager.hpp index 21d5c276..4b4a63a4 100644 --- a/Private/KernelKit/FileManager.hpp +++ b/Private/KernelKit/FileManager.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ /* ------------------------------------------- diff --git a/Private/KernelKit/Framebuffer.hpp b/Private/KernelKit/Framebuffer.hpp index 428e8cc6..2847efb0 100644 --- a/Private/KernelKit/Framebuffer.hpp +++ b/Private/KernelKit/Framebuffer.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #ifndef __INC_FB_HPP__ #define __INC_FB_HPP__ diff --git a/Private/KernelKit/HError.hpp b/Private/KernelKit/HError.hpp index f050027f..c9dcc2a5 100644 --- a/Private/KernelKit/HError.hpp +++ b/Private/KernelKit/HError.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/KernelKit/Loader.hpp b/Private/KernelKit/Loader.hpp index 005eb051..fb97c3a4 100644 --- a/Private/KernelKit/Loader.hpp +++ b/Private/KernelKit/Loader.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/KernelKit/PCI/Database.hpp b/Private/KernelKit/PCI/Database.hpp index 72198041..773677d6 100644 --- a/Private/KernelKit/PCI/Database.hpp +++ b/Private/KernelKit/PCI/Database.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once #include <KernelKit/PCI/Device.hpp> diff --git a/Private/KernelKit/PCI/Device.hpp b/Private/KernelKit/PCI/Device.hpp index d3c58e96..08371f12 100644 --- a/Private/KernelKit/PCI/Device.hpp +++ b/Private/KernelKit/PCI/Device.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once #include <NewKit/Defines.hpp> diff --git a/Private/KernelKit/PCI/Dma.hpp b/Private/KernelKit/PCI/Dma.hpp index 0b4b55b8..d5df4c3d 100644 --- a/Private/KernelKit/PCI/Dma.hpp +++ b/Private/KernelKit/PCI/Dma.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/KernelKit/PCI/Dma.inl b/Private/KernelKit/PCI/Dma.inl index be020e72..ac0214af 100644 --- a/Private/KernelKit/PCI/Dma.inl +++ b/Private/KernelKit/PCI/Dma.inl @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ namespace HCore { diff --git a/Private/KernelKit/PCI/Express.hpp b/Private/KernelKit/PCI/Express.hpp index 8b46fbeb..f8abdb82 100644 --- a/Private/KernelKit/PCI/Express.hpp +++ b/Private/KernelKit/PCI/Express.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/KernelKit/PCI/IO.hpp b/Private/KernelKit/PCI/IO.hpp index 4511fca1..a58bd955 100644 --- a/Private/KernelKit/PCI/IO.hpp +++ b/Private/KernelKit/PCI/IO.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/KernelKit/PCI/PCI.hpp b/Private/KernelKit/PCI/PCI.hpp index a70688ce..c93150b2 100644 --- a/Private/KernelKit/PCI/PCI.hpp +++ b/Private/KernelKit/PCI/PCI.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once #include <NewKit/Defines.hpp> diff --git a/Private/KernelKit/PEFCodeManager.hxx b/Private/KernelKit/PEFCodeManager.hxx index 775f299b..8577acb3 100644 --- a/Private/KernelKit/PEFCodeManager.hxx +++ b/Private/KernelKit/PEFCodeManager.hxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #ifndef _INC_CODE_MANAGER_PEF_ #define _INC_CODE_MANAGER_PEF_ diff --git a/Private/KernelKit/PermissionSelector.hxx b/Private/KernelKit/PermissionSelector.hxx index 14bb5a9e..477e0f0c 100644 --- a/Private/KernelKit/PermissionSelector.hxx +++ b/Private/KernelKit/PermissionSelector.hxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #ifndef _INC_PERMISSION_SEL_HPP #define _INC_PERMISSION_SEL_HPP diff --git a/Private/KernelKit/ProcessManager.hpp b/Private/KernelKit/ProcessManager.hpp index 543b3007..092f47e7 100644 --- a/Private/KernelKit/ProcessManager.hpp +++ b/Private/KernelKit/ProcessManager.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #ifndef __PROCESS_MANAGER__ #define __PROCESS_MANAGER__ diff --git a/Private/KernelKit/SMPManager.hpp b/Private/KernelKit/SMPManager.hpp index c7e94a4a..25db164f 100644 --- a/Private/KernelKit/SMPManager.hpp +++ b/Private/KernelKit/SMPManager.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #ifndef _INC_SMP_MANAGER_HPP #define _INC_SMP_MANAGER_HPP diff --git a/Private/KernelKit/Semaphore.hpp b/Private/KernelKit/Semaphore.hpp index 535598c7..8897a135 100644 --- a/Private/KernelKit/Semaphore.hpp +++ b/Private/KernelKit/Semaphore.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/KernelKit/ThreadLocalStorage.hxx b/Private/KernelKit/ThreadLocalStorage.hxx index 95b243c9..ba2f021f 100644 --- a/Private/KernelKit/ThreadLocalStorage.hxx +++ b/Private/KernelKit/ThreadLocalStorage.hxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #ifndef _KERNELKIT_TLS_HPP #define _KERNELKIT_TLS_HPP diff --git a/Private/KernelKit/ThreadLocalStorage.inl b/Private/KernelKit/ThreadLocalStorage.inl index 67a797b8..a9bc04cc 100644 --- a/Private/KernelKit/ThreadLocalStorage.inl +++ b/Private/KernelKit/ThreadLocalStorage.inl @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ //! @brief Allocates a pointer from the process's tls. diff --git a/Private/KernelKit/Timer.hpp b/Private/KernelKit/Timer.hpp index eeeeac3e..ef726b08 100644 --- a/Private/KernelKit/Timer.hpp +++ b/Private/KernelKit/Timer.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NetworkKit/IP.hpp b/Private/NetworkKit/IP.hpp index 8761b65d..d2d73b17 100644 --- a/Private/NetworkKit/IP.hpp +++ b/Private/NetworkKit/IP.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NetworkKit/MAC.hxx b/Private/NetworkKit/MAC.hxx index 29a85d7a..c383cc59 100644 --- a/Private/NetworkKit/MAC.hxx +++ b/Private/NetworkKit/MAC.hxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NetworkKit/NetworkDevice.hpp b/Private/NetworkKit/NetworkDevice.hpp index e631e868..94f17bb9 100644 --- a/Private/NetworkKit/NetworkDevice.hpp +++ b/Private/NetworkKit/NetworkDevice.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #ifndef _INC_NETWORKDEVICE_HPP__ #define _INC_NETWORKDEVICE_HPP__ diff --git a/Private/NewBoot/Source/Utils.cxx b/Private/NewBoot/Source/Utils.cxx deleted file mode 100644 index 4f7293bc..00000000 --- a/Private/NewBoot/Source/Utils.cxx +++ /dev/null @@ -1,15 +0,0 @@ -/* - * ======================================================== - * - * NewBoot - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ - -#include <BootKit/BootKit.hxx> -#include <FirmwareKit/EFI.hxx> - -/// BUGS: 0 - -/// @brief EFI API diff --git a/Private/NewBoot/Source/makefile b/Private/NewBoot/Source/makefile index dd8e5da9..40996aa4 100644 --- a/Private/NewBoot/Source/makefile +++ b/Private/NewBoot/Source/makefile @@ -10,7 +10,7 @@ ASM=nasm OBJ=$(wildcard *.o) $(wildcard ../../Obj/*.obj) $(wildcard HEL/AMD64/*.obj) FLAG_ASM=-f win64 -FLAG_GNU=-fshort-wchar -fPIC -D__DEBUG__ -mgeneral-regs-only -mno-red-zone -DEFI_FUNCTION_WRAPPER -I../ -I../../ -I./ -c -ffreestanding -fno-rtti -fno-exceptions -std=c++20 -D__HAVE_HCORE_APIS__ -D__HCORE__ -I./ -I$(HOME)/ +FLAG_GNU=-fshort-wchar -D__DEBUG__ -mgeneral-regs-only -mno-red-zone -DEFI_FUNCTION_WRAPPER -I../ -I../../ -I./ -c -ffreestanding -fno-rtti -fno-exceptions -std=c++20 -D__HAVE_HCORE_APIS__ -D__HCORE__ -I./ -I$(HOME)/ .PHONY: invalid-recipe invalid-recipe: @@ -27,7 +27,7 @@ bootloader-amd64: .PHONY: run-efi-amd64 run-efi-amd64: - qemu-system-x86_64 -net none -smp 2 -m 4G -M q35 -bios OVMF.fd -drive file=fat:rw:CDROM,index=1,format=raw -serial stdio + qemu-system-x86_64 -net none -smp 2 -m 4G -M q35 -bios OVMF.fd -drive file=fat:rw:CDROM,index=1,format=raw -d int .PHONY: download-edk download-edk: diff --git a/Private/NewKit/Array.hpp b/Private/NewKit/Array.hpp index edf6a8df..3e1ee47d 100644 --- a/Private/NewKit/Array.hpp +++ b/Private/NewKit/Array.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once #include <KernelKit/DebugOutput.hpp> diff --git a/Private/NewKit/ArrayList.hpp b/Private/NewKit/ArrayList.hpp index 48d1810f..9a1c7e9c 100644 --- a/Private/NewKit/ArrayList.hpp +++ b/Private/NewKit/ArrayList.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NewKit/Atom.hpp b/Private/NewKit/Atom.hpp index bac63a44..8ace1b80 100644 --- a/Private/NewKit/Atom.hpp +++ b/Private/NewKit/Atom.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once #include <NewKit/Defines.hpp> diff --git a/Private/NewKit/CxxAbi.hpp b/Private/NewKit/CxxAbi.hpp index 95ba9142..b82da51a 100644 --- a/Private/NewKit/CxxAbi.hpp +++ b/Private/NewKit/CxxAbi.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once #include <NewKit/Defines.hpp> diff --git a/Private/NewKit/Defines.hpp b/Private/NewKit/Defines.hpp index 6d27e4c5..8f8d4154 100644 --- a/Private/NewKit/Defines.hpp +++ b/Private/NewKit/Defines.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NewKit/ErrorID.hpp b/Private/NewKit/ErrorID.hpp index 08ca4341..73d0425e 100644 --- a/Private/NewKit/ErrorID.hpp +++ b/Private/NewKit/ErrorID.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NewKit/Json.hpp b/Private/NewKit/Json.hpp index 3b201ecc..6b6d90c0 100644 --- a/Private/NewKit/Json.hpp +++ b/Private/NewKit/Json.hpp @@ -1,12 +1,9 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NewKit/KernelCheck.hpp b/Private/NewKit/KernelCheck.hpp index 9f37eb8e..7fd6dc2d 100644 --- a/Private/NewKit/KernelCheck.hpp +++ b/Private/NewKit/KernelCheck.hpp @@ -1,12 +1,9 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NewKit/KernelHeap.hpp b/Private/NewKit/KernelHeap.hpp index fba25b70..52d019b8 100644 --- a/Private/NewKit/KernelHeap.hpp +++ b/Private/NewKit/KernelHeap.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NewKit/LockDelegate.hpp b/Private/NewKit/LockDelegate.hpp index c6c1ce0c..d43d8562 100644 --- a/Private/NewKit/LockDelegate.hpp +++ b/Private/NewKit/LockDelegate.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NewKit/Macros.hpp b/Private/NewKit/Macros.hpp index cafc1cdd..5b8fd0ce 100644 --- a/Private/NewKit/Macros.hpp +++ b/Private/NewKit/Macros.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NewKit/MutableArray.hpp b/Private/NewKit/MutableArray.hpp index f33fa1b4..1b1e9229 100644 --- a/Private/NewKit/MutableArray.hpp +++ b/Private/NewKit/MutableArray.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once #include <CompilerKit/CompilerKit.hpp> diff --git a/Private/NewKit/New.hpp b/Private/NewKit/New.hpp index bb2cf385..ac2587a9 100644 --- a/Private/NewKit/New.hpp +++ b/Private/NewKit/New.hpp @@ -1,12 +1,9 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once #include <NewKit/KernelHeap.hpp> diff --git a/Private/NewKit/NewKit.hpp b/Private/NewKit/NewKit.hpp index fc18a900..6711e151 100644 --- a/Private/NewKit/NewKit.hpp +++ b/Private/NewKit/NewKit.hpp @@ -1,12 +1,9 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NewKit/OwnPtr.hpp b/Private/NewKit/OwnPtr.hpp index 69e3389f..4c1f295b 100644 --- a/Private/NewKit/OwnPtr.hpp +++ b/Private/NewKit/OwnPtr.hpp @@ -1,12 +1,9 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NewKit/PageAllocator.hpp b/Private/NewKit/PageAllocator.hpp index 9f49a51a..70bbbad9 100644 --- a/Private/NewKit/PageAllocator.hpp +++ b/Private/NewKit/PageAllocator.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NewKit/PageManager.hpp b/Private/NewKit/PageManager.hpp index f76aa6f4..21c34abf 100644 --- a/Private/NewKit/PageManager.hpp +++ b/Private/NewKit/PageManager.hpp @@ -1,14 +1,11 @@ // a way to create and find our pages. // I'm thinking about a separate way of getting a paged area. -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NewKit/Pair.hpp b/Private/NewKit/Pair.hpp index 6e78c8d2..6c87da3d 100644 --- a/Private/NewKit/Pair.hpp +++ b/Private/NewKit/Pair.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NewKit/Pmm.hpp b/Private/NewKit/Pmm.hpp index eb7f75ab..f004904c 100644 --- a/Private/NewKit/Pmm.hpp +++ b/Private/NewKit/Pmm.hpp @@ -1,12 +1,9 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NewKit/Ref.hpp b/Private/NewKit/Ref.hpp index f97e3a90..5ae7ea80 100644 --- a/Private/NewKit/Ref.hpp +++ b/Private/NewKit/Ref.hpp @@ -1,12 +1,9 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NewKit/Stream.hpp b/Private/NewKit/Stream.hpp index 4d5290a2..60c6e7ff 100644 --- a/Private/NewKit/Stream.hpp +++ b/Private/NewKit/Stream.hpp @@ -1,12 +1,9 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NewKit/String.hpp b/Private/NewKit/String.hpp index 6979739a..3694f16c 100644 --- a/Private/NewKit/String.hpp +++ b/Private/NewKit/String.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NewKit/UserHeap.hpp b/Private/NewKit/UserHeap.hpp index 5c0b7134..d69dfe42 100644 --- a/Private/NewKit/UserHeap.hpp +++ b/Private/NewKit/UserHeap.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NewKit/Utils.hpp b/Private/NewKit/Utils.hpp index dc3b1434..5ef26157 100644 --- a/Private/NewKit/Utils.hpp +++ b/Private/NewKit/Utils.hpp @@ -1,12 +1,9 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/NewKit/Variant.hpp b/Private/NewKit/Variant.hpp index 965b6757..77c9726f 100644 --- a/Private/NewKit/Variant.hpp +++ b/Private/NewKit/Variant.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/Source/Array.cxx b/Private/Source/Array.cxx index 368c41c2..a8197ae0 100644 --- a/Private/Source/Array.cxx +++ b/Private/Source/Array.cxx @@ -1,10 +1,7 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <NewKit/Array.hpp> diff --git a/Private/Source/ArrayList.cxx b/Private/Source/ArrayList.cxx index 797d7deb..d61fc17a 100644 --- a/Private/Source/ArrayList.cxx +++ b/Private/Source/ArrayList.cxx @@ -1,10 +1,7 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <NewKit/ArrayList.hpp> diff --git a/Private/Source/Atom.cxx b/Private/Source/Atom.cxx index aab6e30e..a013d0fd 100644 --- a/Private/Source/Atom.cxx +++ b/Private/Source/Atom.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <NewKit/Atom.hpp> diff --git a/Private/Source/Crc32.cxx b/Private/Source/Crc32.cxx index b451d4d4..53de6d13 100644 --- a/Private/Source/Crc32.cxx +++ b/Private/Source/Crc32.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <NewKit/Crc32.hpp> diff --git a/Private/Source/CxxAbi.cxx b/Private/Source/CxxAbi.cxx index 1c004227..88272377 100644 --- a/Private/Source/CxxAbi.cxx +++ b/Private/Source/CxxAbi.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <KernelKit/DebugOutput.hpp> #include <NewKit/CxxAbi.hpp> diff --git a/Private/Source/Defines.cxx b/Private/Source/Defines.cxx index 176a9935..71ef3885 100644 --- a/Private/Source/Defines.cxx +++ b/Private/Source/Defines.cxx @@ -1,10 +1,7 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <NewKit/Defines.hpp> diff --git a/Private/Source/DeviceManager.cxx b/Private/Source/DeviceManager.cxx index e5b84bd3..752fcd77 100644 --- a/Private/Source/DeviceManager.cxx +++ b/Private/Source/DeviceManager.cxx @@ -1,10 +1,7 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <KernelKit/DeviceManager.hpp> diff --git a/Private/Source/DriveManager.cxx b/Private/Source/DriveManager.cxx index 27f6cc42..2a5ea394 100644 --- a/Private/Source/DriveManager.cxx +++ b/Private/Source/DriveManager.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <KernelKit/DebugOutput.hpp> #include <KernelKit/DriveManager.hpp> diff --git a/Private/Source/ErrorOr.cxx b/Private/Source/ErrorOr.cxx index 0887986a..bce6b60d 100644 --- a/Private/Source/ErrorOr.cxx +++ b/Private/Source/ErrorOr.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <NewKit/ErrorOr.hpp> diff --git a/Private/Source/FileManager.cxx b/Private/Source/FileManager.cxx index e38bea79..addd5e02 100644 --- a/Private/Source/FileManager.cxx +++ b/Private/Source/FileManager.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <KernelKit/FileManager.hpp> #include <NewKit/ErrorID.hpp> diff --git a/Private/Source/GUIDWrapper.cxx b/Private/Source/GUIDWrapper.cxx index e83e002e..d7c592e5 100644 --- a/Private/Source/GUIDWrapper.cxx +++ b/Private/Source/GUIDWrapper.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <CFKit/GUIDWrapper.hpp> diff --git a/Private/Source/HError.cxx b/Private/Source/HError.cxx index b82d4296..ced95401 100644 --- a/Private/Source/HError.cxx +++ b/Private/Source/HError.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <KernelKit/HError.hpp> diff --git a/Private/Source/IndexableProperty.cxx b/Private/Source/IndexableProperty.cxx index 778acd19..cdc7b93d 100644 --- a/Private/Source/IndexableProperty.cxx +++ b/Private/Source/IndexableProperty.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ //! @brief Filesystem Indexer. diff --git a/Private/Source/Json.cxx b/Private/Source/Json.cxx index 74daee04..26fe6c02 100644 --- a/Private/Source/Json.cxx +++ b/Private/Source/Json.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <NewKit/Json.hpp> diff --git a/Private/Source/KernelCheck.cxx b/Private/Source/KernelCheck.cxx index 4fc24918..ae8326a5 100644 --- a/Private/Source/KernelCheck.cxx +++ b/Private/Source/KernelCheck.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <ArchKit/ArchKit.hpp> #include <KernelKit/DebugOutput.hpp> diff --git a/Private/Source/KernelHeap.cxx b/Private/Source/KernelHeap.cxx index a1032394..208a7223 100644 --- a/Private/Source/KernelHeap.cxx +++ b/Private/Source/KernelHeap.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <NewKit/Crc32.hpp> #include <NewKit/KernelHeap.hpp> diff --git a/Private/Source/LockDelegate.cxx b/Private/Source/LockDelegate.cxx index d34170b7..30366a86 100644 --- a/Private/Source/LockDelegate.cxx +++ b/Private/Source/LockDelegate.cxx @@ -1,10 +1,7 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <NewKit/LockDelegate.hpp> diff --git a/Private/Source/MutableArray.cxx b/Private/Source/MutableArray.cxx index de9df624..f29c2ef5 100644 --- a/Private/Source/MutableArray.cxx +++ b/Private/Source/MutableArray.cxx @@ -1,10 +1,7 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <NewKit/MutableArray.hpp> diff --git a/Private/Source/Network/IP.cxx b/Private/Source/Network/IP.cxx index b1b45521..c903dc95 100644 --- a/Private/Source/Network/IP.cxx +++ b/Private/Source/Network/IP.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <NetworkKit/IP.hpp> #include <NewKit/Utils.hpp> diff --git a/Private/Source/Network/NetworkDevice.cxx b/Private/Source/Network/NetworkDevice.cxx index 8443467c..0d9af73d 100644 --- a/Private/Source/Network/NetworkDevice.cxx +++ b/Private/Source/Network/NetworkDevice.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <NetworkKit/NetworkDevice.hpp> diff --git a/Private/Source/New+Delete.cxx b/Private/Source/New+Delete.cxx index 709d8361..fbcc7787 100644 --- a/Private/Source/New+Delete.cxx +++ b/Private/Source/New+Delete.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <NewKit/KernelHeap.hpp> #include <NewKit/New.hpp> diff --git a/Private/Source/NewFS+FileManager.cxx b/Private/Source/NewFS+FileManager.cxx index 51959d0b..e03cc471 100644 --- a/Private/Source/NewFS+FileManager.cxx +++ b/Private/Source/NewFS+FileManager.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <KernelKit/FileManager.hpp> diff --git a/Private/Source/NewFS+IO.cxx b/Private/Source/NewFS+IO.cxx index fefb2338..7e5d4f50 100644 --- a/Private/Source/NewFS+IO.cxx +++ b/Private/Source/NewFS+IO.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <KernelKit/DriveManager.hpp> #include <KernelKit/FileManager.hpp> diff --git a/Private/Source/NewFS+Journal.cxx b/Private/Source/NewFS+Journal.cxx index a06249b2..7b76149d 100644 --- a/Private/Source/NewFS+Journal.cxx +++ b/Private/Source/NewFS+Journal.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <KernelKit/DebugOutput.hpp> #include <KernelKit/FileManager.hpp> diff --git a/Private/Source/OwnPtr.cxx b/Private/Source/OwnPtr.cxx index c2382502..a306cbd7 100644 --- a/Private/Source/OwnPtr.cxx +++ b/Private/Source/OwnPtr.cxx @@ -1,10 +1,7 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <NewKit/OwnPtr.hpp> diff --git a/Private/Source/PEFCodeManager.cxx b/Private/Source/PEFCodeManager.cxx index c1340054..e6296a2b 100644 --- a/Private/Source/PEFCodeManager.cxx +++ b/Private/Source/PEFCodeManager.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <KernelKit/DebugOutput.hpp> #include <KernelKit/FileManager.hpp> diff --git a/Private/Source/PRDT.cxx b/Private/Source/PRDT.cxx index 4105b6bc..cf3ceb64 100644 --- a/Private/Source/PRDT.cxx +++ b/Private/Source/PRDT.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <KernelKit/DebugOutput.hpp> #include <NewKit/String.hpp> diff --git a/Private/Source/PageAllocator.cxx b/Private/Source/PageAllocator.cxx index 060ce011..990b738b 100644 --- a/Private/Source/PageAllocator.cxx +++ b/Private/Source/PageAllocator.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <ArchKit/ArchKit.hpp> #include <KernelKit/DebugOutput.hpp> diff --git a/Private/Source/PageManager.cxx b/Private/Source/PageManager.cxx index c801fe07..758d69c7 100644 --- a/Private/Source/PageManager.cxx +++ b/Private/Source/PageManager.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <KernelKit/DebugOutput.hpp> #include <NewKit/PageManager.hpp> diff --git a/Private/Source/Pmm.cxx b/Private/Source/Pmm.cxx index 58f3e4a2..6ac8c7d2 100644 --- a/Private/Source/Pmm.cxx +++ b/Private/Source/Pmm.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <KernelKit/DebugOutput.hpp> #include <NewKit/Pmm.hpp> diff --git a/Private/Source/ProcessManager.cxx b/Private/Source/ProcessManager.cxx index c3b07918..17bd8075 100644 --- a/Private/Source/ProcessManager.cxx +++ b/Private/Source/ProcessManager.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ /***********************************************************************************/ /// @file ProcessManager.cxx diff --git a/Private/Source/Property.cxx b/Private/Source/Property.cxx index cdb72e51..9df9598c 100644 --- a/Private/Source/Property.cxx +++ b/Private/Source/Property.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <CFKit/Property.hpp> diff --git a/Private/Source/Ref.cxx b/Private/Source/Ref.cxx index 8b94411e..f8e9f8b5 100644 --- a/Private/Source/Ref.cxx +++ b/Private/Source/Ref.cxx @@ -1,10 +1,7 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <NewKit/Ref.hpp> diff --git a/Private/Source/SMPManager.cxx b/Private/Source/SMPManager.cxx index 3db349fe..66595ab9 100644 --- a/Private/Source/SMPManager.cxx +++ b/Private/Source/SMPManager.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <ArchKit/ArchKit.hpp> #include <KernelKit/ProcessManager.hpp> diff --git a/Private/Source/Semaphore.cxx b/Private/Source/Semaphore.cxx index ba5a2b26..32051802 100644 --- a/Private/Source/Semaphore.cxx +++ b/Private/Source/Semaphore.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <KernelKit/ProcessManager.hpp> #include <KernelKit/Semaphore.hpp> diff --git a/Private/Source/Storage/ATA.cxx b/Private/Source/Storage/ATA.cxx index 05549e7a..61a58fb1 100644 --- a/Private/Source/Storage/ATA.cxx +++ b/Private/Source/Storage/ATA.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <ArchKit/ArchKit.hpp> #include <StorageKit/ATA.hpp> diff --git a/Private/Source/Storage/NVME.cxx b/Private/Source/Storage/NVME.cxx index 7e4c937f..e1c8fbfa 100644 --- a/Private/Source/Storage/NVME.cxx +++ b/Private/Source/Storage/NVME.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <StorageKit/NVME.hpp> diff --git a/Private/Source/Storage/Storage.cxx b/Private/Source/Storage/Storage.cxx index 2fd5b29b..bba4be1f 100644 --- a/Private/Source/Storage/Storage.cxx +++ b/Private/Source/Storage/Storage.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <StorageKit/Storage.hpp> diff --git a/Private/Source/String.cxx b/Private/Source/String.cxx index b51a560b..23955068 100644 --- a/Private/Source/String.cxx +++ b/Private/Source/String.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <NewKit/String.hpp> #include <NewKit/Utils.hpp> diff --git a/Private/Source/Timer.cxx b/Private/Source/Timer.cxx index e802f734..ecca679a 100644 --- a/Private/Source/Timer.cxx +++ b/Private/Source/Timer.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <KernelKit/Timer.hpp> diff --git a/Private/Source/URL.cxx b/Private/Source/URL.cxx index e471c0c1..ae88678a 100644 --- a/Private/Source/URL.cxx +++ b/Private/Source/URL.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <CFKit/URL.hpp> #include <KernelKit/DebugOutput.hpp> diff --git a/Private/Source/UserHeap.cxx b/Private/Source/UserHeap.cxx index cc243904..35dfc429 100644 --- a/Private/Source/UserHeap.cxx +++ b/Private/Source/UserHeap.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <NewKit/PageManager.hpp> #include <NewKit/UserHeap.hpp> diff --git a/Private/Source/Utils.cxx b/Private/Source/Utils.cxx index ecbd56f4..b9264e36 100644 --- a/Private/Source/Utils.cxx +++ b/Private/Source/Utils.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <NewKit/Utils.hpp> diff --git a/Private/Source/Variant.cxx b/Private/Source/Variant.cxx index 42f59d2f..2a9fd5a0 100644 --- a/Private/Source/Variant.cxx +++ b/Private/Source/Variant.cxx @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #include <NewKit/Variant.hpp> diff --git a/Private/StorageKit/ATA.hpp b/Private/StorageKit/ATA.hpp index 33b976ae..4cdf06a2 100644 --- a/Private/StorageKit/ATA.hpp +++ b/Private/StorageKit/ATA.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/StorageKit/NVME.hpp b/Private/StorageKit/NVME.hpp index 2e778883..727a20c9 100644 --- a/Private/StorageKit/NVME.hpp +++ b/Private/StorageKit/NVME.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/StorageKit/PRDT.hpp b/Private/StorageKit/PRDT.hpp index fb7d81ff..b1127c13 100644 --- a/Private/StorageKit/PRDT.hpp +++ b/Private/StorageKit/PRDT.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once #include <KernelKit/PCI/Dma.hpp> diff --git a/Private/StorageKit/Storage.hpp b/Private/StorageKit/Storage.hpp index f32e8851..aecdbf8f 100644 --- a/Private/StorageKit/Storage.hpp +++ b/Private/StorageKit/Storage.hpp @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #pragma once diff --git a/Private/StorageKit/StorageCore.inl b/Private/StorageKit/StorageCore.inl index 235486a6..2a621ac5 100644 --- a/Private/StorageKit/StorageCore.inl +++ b/Private/StorageKit/StorageCore.inl @@ -1,11 +1,8 @@ -/* - * ======================================================== - * - * HCore - * Copyright Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ #ifndef __STORAGEKIT_STORAGECORE_INL__ #define __STORAGEKIT_STORAGECORE_INL__ diff --git a/Private/makefile b/Private/makefile index e053cb96..8c721dc3 100644 --- a/Private/makefile +++ b/Private/makefile @@ -3,9 +3,9 @@ # This is the microkernel makefile. ################################################## -CC = x86_64-w64-mingw32-g++ +CC = x86_64-w64-mingw32-gcc LD = x86_64-w64-mingw32-ld -CCFLAGS = -c -ffreestanding -fPIC -fmodules-ts -mgeneral-regs-only -mno-red-zone -fno-rtti -fno-exceptions -std=c++20 -D__FSKIT_NEWFS__ -D__HAVE_HCORE_APIS__ -D__HCORE__ -I../ -I./ -I$(HOME)/ +CCFLAGS = -c -ffreestanding -mgeneral-regs-only -mno-red-zone -fno-rtti -fno-exceptions -std=c++20 -D__FSKIT_NEWFS__ -D__HAVE_HCORE_APIS__ -D__HCORE__ -I../ -I./ -I$(HOME)/ ASM = nasm ASMFLAGS = -f win64 LDFLAGS = -e Main --subsystem=17 @@ -25,7 +25,7 @@ MOVEALL=./MoveAll.sh .PHONY: h-core-amd64 h-core-amd64: - $(CC) $(CCFLAGS) Source/*.cxx HALKit/AMD64/PCI/*.cpp Source/Network/*.cxx\ + $(CC) $(CCFLAGS) Source/*.cxx HALKit/AMD64/PCI/*.cxx Source/Network/*.cxx\ Source/Storage/*.cxx HALKit/AMD64/*.cxx HALKit/AMD64/*.cpp HALKit/AMD64/*.s $(ASM) $(ASMFLAGS) HALKit/AMD64/HalInterruptRouting.asm $(ASM) $(ASMFLAGS) HALKit/AMD64/HalSMPCoreManager.asm diff --git a/SPECIFICATION.TXT b/SPECIFICATION.TXT index 6a129d9e..2b62521b 100644 --- a/SPECIFICATION.TXT +++ b/SPECIFICATION.TXT @@ -30,3 +30,11 @@ - Large storage support. - Long file names. - UNIX path style. + +================================== +3: The Executives +=================================== + +- Kernel -> ke_init_x +- RunTime -> rt_copy_mem +- Hal -> HalFooBar
\ No newline at end of file diff --git a/TODO_LIST.TXT b/TODO_LIST.TXT index ec2d6106..6cea90ba 100644 --- a/TODO_LIST.TXT +++ b/TODO_LIST.TXT @@ -8,8 +8,8 @@ - Fix bug in kernel loader, which causes a 06 #UD. [ X ] - Load Kernel [ X ] - Add IDT [ X ] - - AHCI driver [ ] -- Context switch x87/SSE/AVX registers [ 1/2 ] + - AHCI driver [ ] +- Context switch x87/SSE/AVX registers [ X ] - Framebuffer and AHCI support [ X ] - Native Subsystem and GUI [ ] - Make installer [ ] |
