mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
storage: Wrap runtime variable sector size with MAX_VARIABLE_LOG_SECTOR
When enabled this allows 512n and 4Kn drives to be used with a single build. (So far all ATA SSDs use 512 byte logical sectors) Change-Id: I902d2318ca8abb581699c0bca68d6e3ec227d064
This commit is contained in:
parent
bc6c189dcb
commit
c61ad40812
9 changed files with 49 additions and 33 deletions
|
|
@ -108,8 +108,8 @@
|
|||
#endif
|
||||
|
||||
/* this _could_ be larger than a sector if that would ever be useful */
|
||||
#ifdef MAX_VIRT_SECTOR_SIZE
|
||||
#define DC_CACHE_BUFSIZE MAX_VIRT_SECTOR_SIZE
|
||||
#ifdef MAX_VARIABLE_LOG_SECTOR
|
||||
#define DC_CACHE_BUFSIZE MAX_VARIABLE_LOG_SECTOR
|
||||
#else
|
||||
#define DC_CACHE_BUFSIZE SECTOR_SIZE
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue