summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-11-04 19:25:43 -0500
committerSolomon Peachy <pizza@shaftnet.org>2024-11-04 21:10:51 -0500
commit000a575d13d3b11a920361dda45fcfb63447317d (patch)
tree57e3397265d5b3631cdebac06a54eb53053e21b7 /firmware
parent2824bd5f1644a6b9129a0c0fcfe2bafab91a7225 (diff)
downloadrockbox-000a575d13d3b11a920361dda45fcfb63447317d.tar.gz
rockbox-000a575d13d3b11a920361dda45fcfb63447317d.zip
storage: Make ramdisk use the global SECTOR_SIZE definitionHEADmaster
Change-Id: I0c2fe75ea425107f1cd64acf42ff8c00cee07456
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/ramdisk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/drivers/ramdisk.c b/firmware/drivers/ramdisk.c
index cecc943352..5798de252e 100644
--- a/firmware/drivers/ramdisk.c
+++ b/firmware/drivers/ramdisk.c
@@ -22,9 +22,10 @@
22#include <stdbool.h> 22#include <stdbool.h>
23#include <string.h> 23#include <string.h>
24 24
25#include "config.h"
26#include "fs_defines.h"
25#include "storage.h" 27#include "storage.h"
26 28
27#define SECTOR_SIZE 512
28#define NUM_SECTORS 16384 29#define NUM_SECTORS 16384
29 30
30static unsigned char ramdisk[SECTOR_SIZE * NUM_SECTORS]; 31static unsigned char ramdisk[SECTOR_SIZE * NUM_SECTORS];