Title [lDOS boot] LBA multi-sector loader would not clear ldHasLBA flag 2
AuthorE. C. Masloch
Created2026-06-11 20:36:30 +0200 Jun Thu
State open

If the flag 2 (force single-sector operation) was set, and LBA access was used, the flag would not be reset before passing control to the payload. This was because the clear instruction was part of restore_dpt which was patched to a no-op if LBA was in use.

E. C. Masloch on 2026-06-11 20:41:12 +0200 Jun Thu

Fixed in hg 141d363fbcf9 on 2025-10-04. The error case had no need to reset the flag, so this still allows just a single instruction to clear it.

E. C. Masloch on 2026-06-11 20:42:35 +0200 Jun Thu

Open question: Is it possible to set the flag using the query patch site but never reset it? Perhaps if enough of the file is already loaded?