diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-03-16 05:02:43 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-03-16 05:02:43 +0100 |
| commit | 3f25ac6d7aad0e90ce43f6b2c3e310a416b8c73a (patch) | |
| tree | 31aabe48e29474ad50ed5f0604fc17acdb907e1a /dev | |
| parent | 6c43bc8c6284610230f2e13b43c17be415d9e23e (diff) | |
AHCI+Generic.cc: Fix formula for kSATASectorCount.
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/Kernel/HALKit/AMD64/Storage/AHCI+Generic.cc | 2 |
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; |
