diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-06-15 16:03:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-15 16:03:38 +0200 |
| commit | eb9df5eea339812513c25a8d3b2eeb03c633e7ac (patch) | |
| tree | efcdaaa25d08daadcd27e0597a0fb20defc49a23 /dev/boot/BootKit | |
| parent | 6511afbf405c31513bc88ab06bca58218610a994 (diff) | |
| parent | f7e5542dc13519cc78c204b4062acb0b71296a58 (diff) | |
Merge pull request #41 from nekernel-org/dev
NeKernel v0.0.3e1
Diffstat (limited to 'dev/boot/BootKit')
| -rw-r--r-- | dev/boot/BootKit/Device.h | 4 | ||||
| -rw-r--r-- | dev/boot/BootKit/HW/SATA.h | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/dev/boot/BootKit/Device.h b/dev/boot/BootKit/Device.h index 8f5bf854..6ae8cd6b 100644 --- a/dev/boot/BootKit/Device.h +++ b/dev/boot/BootKit/Device.h @@ -20,8 +20,8 @@ class Device { NE_MOVE_DEFAULT(Device) struct Trait { - SizeT mBase{1024}; - SizeT mSize{1024}; + SizeT mBase{0}; + SizeT mSize{0}; }; virtual Trait& Leak() = 0; diff --git a/dev/boot/BootKit/HW/SATA.h b/dev/boot/BootKit/HW/SATA.h index eecf426d..d880c3af 100644 --- a/dev/boot/BootKit/HW/SATA.h +++ b/dev/boot/BootKit/HW/SATA.h @@ -10,7 +10,7 @@ #include <CompilerKit/CompilerKit.h> #include <modules/AHCI/AHCI.h> -#define kAHCISectorSz (4096) +#define kAHCISectorSz (512) class BootDeviceSATA final { public: @@ -19,11 +19,9 @@ class BootDeviceSATA final { NE_COPY_DEFAULT(BootDeviceSATA) - struct SATATrait final { - Kernel::SizeT mBase{1024}; + struct SATATrait final : public Device::Trait { Kernel::Boolean mErr{false}; Kernel::Boolean mDetected{false}; - Kernel::SizeT mSize{0}; operator bool() { return !this->mErr; } }; |
