summaryrefslogtreecommitdiffhomepage
path: root/Private/KernelKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-28 14:26:58 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-28 14:26:58 +0100
commitf77a876e0ac2611079ee188933f0f3de222dd08a (patch)
treec8230499b03f8ad2cbdddbb6e06607163a176149 /Private/KernelKit
parent2cf9f370d40a5c6512530c600292c5fac0410e11 (diff)
HCoreKrnl\HAL\IDT: Work in progress patch(fix) of HCore interrupt system
on x86. Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/KernelKit')
-rw-r--r--Private/KernelKit/DebugOutput.hpp4
-rw-r--r--Private/KernelKit/DriveManager.hpp8
2 files changed, 9 insertions, 3 deletions
diff --git a/Private/KernelKit/DebugOutput.hpp b/Private/KernelKit/DebugOutput.hpp
index a23b9ab3..4b077599 100644
--- a/Private/KernelKit/DebugOutput.hpp
+++ b/Private/KernelKit/DebugOutput.hpp
@@ -33,7 +33,7 @@ class TerminalDevice final : public DeviceInterface<const Char *> {
static TerminalDevice Shared() noexcept;
};
-inline TerminalDevice EndLine() {
+inline TerminalDevice end_line() {
TerminalDevice selfTerm = TerminalDevice::Shared();
selfTerm << "\n";
return selfTerm;
@@ -45,3 +45,5 @@ inline TerminalDevice EndLine() {
#endif // ifdef kcout
#define kcout TerminalDevice::Shared()
+#define endl end_line()
+
diff --git a/Private/KernelKit/DriveManager.hpp b/Private/KernelKit/DriveManager.hpp
index 912c7fd9..f0cd76e6 100644
--- a/Private/KernelKit/DriveManager.hpp
+++ b/Private/KernelKit/DriveManager.hpp
@@ -62,6 +62,10 @@ struct DriveTraits final {
typedef DeviceInterface<DriveTraits> DriveDevice;
typedef DriveDevice* DriveDevicePtr;
+/**
+ * @brief Abstracted hard-drive container class.
+ * @note This class has all of it's drive set to nullptr, allocate them using GetAddressOf(index).
+ */
class Mountpoint final {
public:
explicit Mountpoint() = default;
@@ -87,7 +91,7 @@ class Mountpoint final {
return &mD;
default: {
GetLastError() = kErrorNoSuchDisk;
- kcout << "Krnl\\Mountpoint: Check HError.\n";
+ kcout << "HCoreKrnl\\Mountpoint: Check HError.\n";
break;
}
}
@@ -96,7 +100,7 @@ class Mountpoint final {
}
private:
- DriveDevicePtr mA, mB, mC, mD;
+ DriveDevicePtr mA, mB, mC, mD = nullptr;
};
} // namespace HCore