summaryrefslogtreecommitdiffhomepage
path: root/Private/KernelKit/DriveManager.hpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-03-01 09:37:23 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-03-01 09:37:23 +0100
commit374d341bf0216294b58f0198dbe4ba986464563f (patch)
treead9fb1a0b02f40f566f09d36531060780457d249 /Private/KernelKit/DriveManager.hpp
parentc3e8cddf8c689807097f6f956d45e3ba96afec20 (diff)
:boom: See below.
HCoreLdr: Start effort to load HCoreKrnl in case of a non-installer scenario. HCoreKrnl: Start working on disk abstraction (AHCI) and rework PE format header file. Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/KernelKit/DriveManager.hpp')
-rw-r--r--Private/KernelKit/DriveManager.hpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/Private/KernelKit/DriveManager.hpp b/Private/KernelKit/DriveManager.hpp
index a9e26fd3..6cfb007b 100644
--- a/Private/KernelKit/DriveManager.hpp
+++ b/Private/KernelKit/DriveManager.hpp
@@ -31,13 +31,13 @@ enum {
kDriveCnt = 9,
};
-typedef Int64 DriveID;
+typedef Int64 rt_drive_id_type;
/// @brief Mounted drive traits.
struct DriveTraits final {
- char fName[kDriveNameLen]; // /System, /Boot, /USBDevice...
+ Char fName[kDriveNameLen]; // /System, /Boot, //./Devices/USB...
Int32 fKind; // fMassStorage, fFloppy, fOpticalDisc.
- DriveID fId; // Drive id.
+ rt_drive_id_type fId; // Drive id.
Int32 fFlags; // fReadOnly, fXPMDrive, fXPTDrive
//! for StorageKit.
@@ -77,6 +77,8 @@ class Mountpoint final {
DriveDevicePtr D() { return mD; }
DriveDevicePtr* GetAddressOf(int index) {
+ DbgLastError() = kErrorSuccess;
+
switch (index) {
case 0:
return &mA;
@@ -87,8 +89,9 @@ class Mountpoint final {
case 3:
return &mD;
default: {
- GetLastError() = kErrorNoSuchDisk;
+ DbgLastError() = kErrorNoSuchDisk;
kcout << "HCoreKrnl\\Mountpoint: Check HError.\n";
+
break;
}
}