From f8aaa274535b6541f376090958eedbbba3ba00ba Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 14 May 2025 18:35:05 +0200 Subject: feat(kernel): Filesystem fixes, and others. what? - Add simple generic RTL8139 NIC driver, to be used within a NK device. - Update IVT accordingly. - Comment ARM's AP GIC init function, to tell what it's actually doing. - Cleanup Kernel Main, removed the useless pre_init_scheduler function. - Prepare new FileMgr with HeFileSystemMgr. - Fallback to NeFS when trying to format a fileysstem. Signed-off-by: Amlal El Mahrouss --- dev/kernel/HALKit/AMD64/HalAPICController.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'dev/kernel/HALKit/AMD64/HalAPICController.cc') diff --git a/dev/kernel/HALKit/AMD64/HalAPICController.cc b/dev/kernel/HALKit/AMD64/HalAPICController.cc index 758e2f52..e547d982 100644 --- a/dev/kernel/HALKit/AMD64/HalAPICController.cc +++ b/dev/kernel/HALKit/AMD64/HalAPICController.cc @@ -7,8 +7,8 @@ #include #include -#define cIOAPICRegVal (4) -#define cIOAPICRegReg (0) +#define kIOAPICRegVal (4) +#define kIOAPICRegReg (0) namespace Kernel::HAL { APICController::APICController(VoidPtr base) : fApic(base) {} @@ -19,9 +19,9 @@ UInt32 APICController::Read(UInt32 reg) noexcept { MUST_PASS(this->fApic); UInt32 volatile* io_apic = (UInt32 volatile*) this->fApic; - io_apic[cIOAPICRegReg] = (reg & 0xFF); + io_apic[kIOAPICRegReg] = (reg & 0xFF); - return io_apic[cIOAPICRegVal]; + return io_apic[kIOAPICRegVal]; } /// @brief Write to APIC controller. @@ -32,7 +32,7 @@ Void APICController::Write(UInt32 reg, UInt32 value) noexcept { UInt32 volatile* io_apic = (UInt32 volatile*) this->fApic; - io_apic[cIOAPICRegReg] = (reg & 0xFF); - io_apic[cIOAPICRegVal] = value; + io_apic[kIOAPICRegReg] = (reg & 0xFF); + io_apic[kIOAPICRegVal] = value; } } // namespace Kernel::HAL -- cgit v1.2.3