Commit f7287ab5 authored by John Ballance's avatar John Ballance
Browse files

Adjust RAMFS to permit larger RAM disc formatting

Detail:
Increased the number of sectors per track in the disc record in s.RamFS50
This prevents the track count getting too large and causing an abort in
RAMFSFiler.
Admin:
tested in iyo
JB


Version 2.30. Tagged as 'RAMFS-2_30'
parent 378a0605
......@@ -11,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "2.29"
Module_Version SETA 229
Module_MajorVersion SETS "2.30"
Module_Version SETA 230
Module_MinorVersion SETS ""
Module_Date SETS "13 Jul 2013"
Module_ApplicationDate SETS "13-Jul-13"
Module_Date SETS "18 Aug 2014"
Module_ApplicationDate SETS "18-Aug-14"
Module_ComponentName SETS "RAMFS"
Module_ComponentPath SETS "castle/RiscOS/Sources/FileSys/RAMFS/RAMFS"
Module_FullVersion SETS "2.29"
Module_HelpVersion SETS "2.29 (13 Jul 2013)"
Module_FullVersion SETS "2.30"
Module_HelpVersion SETS "2.30 (18 Aug 2014)"
END
/* (2.29)
/* (2.30)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 2.29
#define Module_MajorVersion_CMHG 2.30
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 13 Jul 2013
#define Module_Date_CMHG 18 Aug 2014
#define Module_MajorVersion "2.29"
#define Module_Version 229
#define Module_MajorVersion "2.30"
#define Module_Version 230
#define Module_MinorVersion ""
#define Module_Date "13 Jul 2013"
#define Module_Date "18 Aug 2014"
#define Module_ApplicationDate "13-Jul-13"
#define Module_ApplicationDate "18-Aug-14"
#define Module_ComponentName "RAMFS"
#define Module_ComponentPath "castle/RiscOS/Sources/FileSys/RAMFS/RAMFS"
#define Module_FullVersion "2.29"
#define Module_HelpVersion "2.29 (13 Jul 2013)"
#define Module_LibraryVersionInfo "2:29"
#define Module_FullVersion "2.30"
#define Module_HelpVersion "2.30 (18 Aug 2014)"
#define Module_LibraryVersionInfo "2:30"
......@@ -16,9 +16,15 @@
TTL "Initialisation and FS star commands"
GBLA MySecSizel2b
MyMySecSizel2b * 10 ; 9 = 512, 10 = 1024
; n.b. 512 byte sector has max disc size approx 256MB. 1025 max is 512MB
; SecPerTrack needs to be larger than 1 to prevent track count
; exceeding its max and 'blowing' part of RAMFSFiler
SkeletonDiscRec ; fields marked * need filling in
DCB 10 ; Log2SectorSize
DCB 1 ; SecPerTrk (this is a RAM disc, after all)
DCB MyMySecSizel2b ; Log2SectorSize
DCB 128 ; SecPerTrk (this is a RAM disc)
DCB 1 ; Heads
DCB DensitySingle ; Density
DCB 0 ; * IdLen
......@@ -114,7 +120,7 @@ InitRAMDisc ROUT
MOV r4, #0
STMIA r2, {r0,r3,r4} ; byte address 0 on drive 0
MOV r3, #0
MOV r4, #1024
MOV r4, #(1<<MyMySecSizel2b)
LDR r8, FileCorePrivate
SWI XFileCore_DiscOp64
ADD sp, sp, #SzExtendedDiscAddress
......@@ -191,7 +197,7 @@ InitDiscRec ROUT
; r6 = number of bits in a zone
; r7 = number of allocation bits in the map
; r8 = ids per zone
Min_IdLen * 10+3 ; min allowed idlen (with 1024 byte zones)
Min_IdLen * MyMySecSizel2b+3 ; min allowed idlen = log2 sectorsize+3
[ BigMaps
Max_IdLen * 19 ; max allowed idlen
|
......
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