summaryrefslogtreecommitdiffstats
path: root/apps/plugins/plugin.lds
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-04-26 22:57:31 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-04-28 20:04:10 +0100
commit20fc9282213b2c50938bc75e8556c8cfa0d1aee7 (patch)
tree34357e0106df71ab14ef0d5217508b01779e66c8 /apps/plugins/plugin.lds
parented8c977e2fb3c525868411a270a5d57fe0105611 (diff)
downloadrockbox-20fc9282213b2c50938bc75e8556c8cfa0d1aee7.tar.gz
rockbox-20fc9282213b2c50938bc75e8556c8cfa0d1aee7.zip
x1000: Centralize common definitions, memory layout
Change-Id: I8daad058ae55d4b750b1ae407153e4917de5d095
Diffstat (limited to 'apps/plugins/plugin.lds')
-rw-r--r--apps/plugins/plugin.lds6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds
index 5dfaa6c86b..cc0be3abd5 100644
--- a/apps/plugins/plugin.lds
+++ b/apps/plugins/plugin.lds
@@ -77,9 +77,9 @@ OUTPUT_FORMAT(elf32-littlemips)
#include "cpu.h"
#define DRAMSIZE (DRAM_SIZE - PLUGIN_BUFFER_SIZE - CODEC_SIZE - FRAME_SIZE - TTB_SIZE)
#elif CONFIG_CPU==X1000
-#include "config.h"
+#include "cpu.h"
#undef STUBOFFSET
-#define STUBOFFSET 0x4000
+#define DRAMSIZE (X1000_DRAM_SIZE - PLUGIN_BUFFER_SIZE - CODEC_SIZE)
#endif
/* default to full RAM (minus codecs&plugins) unless specified otherwise */
@@ -179,7 +179,7 @@ OUTPUT_FORMAT(elf32-littlemips)
/* The bit of IRAM that is available is used in the core */
#elif CONFIG_CPU == X1000
-#define DRAMORIG (0x80000000 + STUBOFFSET)
+#define DRAMORIG X1000_DRAM_BASE
#define IRAM DRAM
#define IRAMSIZE 0