HomeFreeBSD

Fix off-by-one error in HPA/AMA maximum reporting.

Description

Fix off-by-one error in HPA/AMA maximum reporting.

Before my refactoring the code reported value as maximum number of sectors,
adding one to the maximum sector number returned by respective command.
While this difference is somewhat confusing, restore previous behavior.

MFC after: 3 days

Details

Provenance
mavAuthored on Nov 22 2019, 3:41 PM
Parents
rG86d0c432a6cf: amd: add deprecation warning on program startup
Branches
Unknown
Tags
Unknown

Event Timeline