Commit 14356c66 authored by Ben Avison's avatar Ben Avison
Browse files

Fix for bug that meant that several cards only worked in drive 0

Detail:
  MiscOp 0 turns out to pass the drive number *both* in R1 and in the top
  3 bits of R2. SDFS was failing to mask the drive bits out of R2, which
  caused some (but not all) cards to generate an error. Obviously, this
  didn't affect drive 0.
Admin:
  Tested on Beagleboard "Zippy" expansion card

Version 0.02. Tagged as 'SDFS-0_02'
parent 9eabe9af
/* (0.01)
/* (0.02)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.01
#define Module_MajorVersion_CMHG 0.02
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 07 Jun 2012
#define Module_Date_CMHG 16 Jul 2012
#define Module_MajorVersion "0.01"
#define Module_Version 1
#define Module_MajorVersion "0.02"
#define Module_Version 2
#define Module_MinorVersion ""
#define Module_Date "07 Jun 2012"
#define Module_Date "16 Jul 2012"
#define Module_ApplicationDate "07-Jun-12"
#define Module_ApplicationDate "16-Jul-12"
#define Module_ComponentName "SDFS"
#define Module_ComponentPath "cddl/RiscOS/Sources/FileSys/SDFS/SDFS"
#define Module_FullVersion "0.01"
#define Module_HelpVersion "0.01 (07 Jun 2012)"
#define Module_LibraryVersionInfo "0:1"
#define Module_FullVersion "0.02"
#define Module_HelpVersion "0.02 (16 Jul 2012)"
#define Module_LibraryVersionInfo "0:2"
......@@ -40,7 +40,7 @@
low_level_error_t miscop_Mount(uint32_t drive, uint32_t byte_address, uint8_t * restrict buffer, size_t length, disc_record_t * restrict disc_record)
{
low_level_error_t e;
uint64_t disc_address = byte_address;
uint64_t disc_address = (uint64_t) byte_address & LegacyDiscAddress_ByteOffset_Mask;
IGNORE(disc_record);
dprintf("Mount - from :%u/%08X to %p, length %u, disc record %p\n",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment