From 9be360bd9cce8a28fb4626fcc47b31b169e3b47c Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 8 Apr 2024 21:13:11 +0200 Subject: Kernel: Don't forget to set drives inside DriveManager. Kernel: Start implement Format method for NewFS, it needs to verify the disk first. Kernel: Add kErrorDiskIsCorrupted (Error 54). Kernel: Add __NEWOS_AMD64__ and __NEWOS_PPC__. Kernel: Rename builtin RJ45 to IEE802 Signed-off-by: Amlal El Mahrouss --- Private/KernelKit/DriveManager.hxx | 2 +- Private/KernelKit/HError.hpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'Private/KernelKit') diff --git a/Private/KernelKit/DriveManager.hxx b/Private/KernelKit/DriveManager.hxx index aa94b08d..e66dedc8 100644 --- a/Private/KernelKit/DriveManager.hxx +++ b/Private/KernelKit/DriveManager.hxx @@ -121,7 +121,7 @@ DriveTrait construct_drive(void) noexcept; /// @brief Fetches the main drive. /// @return the new drive. -DriveTrait main_drive(void) noexcept; +DriveTrait construct_main_drive(void) noexcept; } // namespace NewOS #endif /* ifndef __DRIVE_MANAGER__ */ diff --git a/Private/KernelKit/HError.hpp b/Private/KernelKit/HError.hpp index a0105d64..a3ea5d61 100644 --- a/Private/KernelKit/HError.hpp +++ b/Private/KernelKit/HError.hpp @@ -34,6 +34,7 @@ inline constexpr HError kErrorForkAlreadyExists = 50; inline constexpr HError kErrorOutOfTeamSlot = 51; inline constexpr HError kErrorHeapNotPresent = 52; inline constexpr HError kErrorNoEntrypoint = 53; +inline constexpr HError kErrorDiskIsCorrupted = 54; inline constexpr HError kErrorUnimplemented = 0; Boolean ke_bug_check(void) noexcept; -- cgit v1.2.3