• Robert Sprowson's avatar
    Calculate the offset to the hardware-dependent information · b95e07bc
    Robert Sprowson authored
    Don't assume that the disc address to MiscOp_Mount is always &C00, in order to locate the hardware-dependent information (see PRM 2-215), calculate the offset properly. This fixes a problem that FileCore 3.74 triggered where the LBA flag was no longer being recovered now the alignment of the request in R2 has changed, causing some drives to no longer mount if they also don't support CHS addressing.
    Strictly speaking there's no guarantee that FileCore is even asking for the boot block at all; ADFS should read the sectors itself before fulfilling the request, but historically it's always assumed that the boot block was being read, so let sleeping dogs lie.
    Ref https://www.riscosopen.org/forum/forums/4/topics/9390
    
    Version 3.53. Tagged as 'ADFS-3_53'
    b95e07bc
Adfs12 39 KB