summaryrefslogtreecommitdiffhomepage
path: root/src/boot/BootKit/HW
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-09 02:50:07 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-09 02:52:34 +0100
commit4d192e629a07ae457134cb0063e0136e54b01008 (patch)
treeb933444d27c2b9ac22693e2e65bd294792c79d39 /src/boot/BootKit/HW
parentf78c535aec66e02584e1b02995dc12c9e1bcb64c (diff)
chore: Codebase improvements and tweaks.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/boot/BootKit/HW')
-rw-r--r--src/boot/BootKit/HW/ATA.h4
-rw-r--r--src/boot/BootKit/HW/SATA.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/boot/BootKit/HW/ATA.h b/src/boot/BootKit/HW/ATA.h
index 7ebf296d..1842300b 100644
--- a/src/boot/BootKit/HW/ATA.h
+++ b/src/boot/BootKit/HW/ATA.h
@@ -9,8 +9,7 @@
#include <BootKit/Device.h>
#include <modules/ATA/ATA.h>
-using namespace Kernel;
-
+namespace Boot {
class BootDeviceATA final : public Device {
public:
enum {
@@ -45,3 +44,4 @@ class BootDeviceATA final : public Device {
private:
ATATrait mTrait;
};
+} // namespace Boot \ No newline at end of file
diff --git a/src/boot/BootKit/HW/SATA.h b/src/boot/BootKit/HW/SATA.h
index 68ed30c8..442ea399 100644
--- a/src/boot/BootKit/HW/SATA.h
+++ b/src/boot/BootKit/HW/SATA.h
@@ -12,6 +12,7 @@
#define kAHCISectorSz (512)
+namespace Boot {
class BootDeviceSATA final {
public:
explicit BootDeviceSATA();
@@ -23,7 +24,7 @@ class BootDeviceSATA final {
Kernel::Boolean mErr{false};
Kernel::Boolean mDetected{false};
- operator bool() { return !this->mErr; }
+ explicit operator bool() { return !this->mErr; }
};
operator bool() { return this->Leak().mDetected; }
@@ -40,3 +41,4 @@ class BootDeviceSATA final {
private:
SATATrait mTrait;
};
+} // namespace Boot \ No newline at end of file