• Ben Avison's avatar
    Fix for alignment exception on ARMv7 · 3bd0b704
    Ben Avison authored
      The Density field in the disc record is a byte at a non-word-aligned address
      but it was being loaded here with an LDR instruction. There is actually a
      pre-existing bug here, since the code at lines 904-905 would only have been
      executed on earlier CPUs if SectorSize, SecsPerTrk and Heads were all zero
      too. This would correspond to an implausibly small hard disc, so arguably
      this part of the branch should perhaps be removed altogether?
      Untested at ROOL.
      Submission from Willi Theiß [comments above are my own - BA]
    Version 3.40. Tagged as 'FileCore-3_40'
VersionNum 811 Bytes