summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel
diff options
context:
space:
mode:
Diffstat (limited to 'dev/Kernel')
-rw-r--r--dev/Kernel/HALKit/AMD64/Storage/AHCI+Generic.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/Kernel/HALKit/AMD64/Storage/AHCI+Generic.cc b/dev/Kernel/HALKit/AMD64/Storage/AHCI+Generic.cc
index 874b7012..c9d2d9df 100644
--- a/dev/Kernel/HALKit/AMD64/Storage/AHCI+Generic.cc
+++ b/dev/Kernel/HALKit/AMD64/Storage/AHCI+Generic.cc
@@ -91,7 +91,7 @@ STATIC Void drv_compute_disk_ahci() noexcept
kCurrentDiskModel[40] = '\0';
- kSATASectorCount = identify_data[60] | identify_data[61];
+ kSATASectorCount = (identify_data[61] << 16) | identify_data[60];
kout << "Drive Model: " << kCurrentDiskModel << kendl;