summaryrefslogtreecommitdiffhomepage
path: root/Private/KernelKit
diff options
context:
space:
mode:
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