summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-04-05 19:18:15 +0000
committerThomas Martitz <kugel@rockbox.org>2010-04-05 19:18:15 +0000
commit02afc271c92c9138a51c22ff723872c7a430f74e (patch)
treefa6e2487cfd351d684d28b36f392040a27654b5e /apps/plugins
parent527a2e64ab23fee104bf447e06fdefb38c211418 (diff)
downloadrockbox-02afc271c92c9138a51c22ff723872c7a430f74e.tar.gz
rockbox-02afc271c92c9138a51c22ff723872c7a430f74e.zip
as3525v2: Move codec into iram freeing 1MB for the audio buffer and also a small decoding speedup (iram seems to be 50% faster than dram when boosted and the same when unboosed). 32k is still reserved for the core and can be readjusted if needed. Codecs don't appear to ever need the 1MB (usually <350k only).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25491 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/plugin.lds4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds
index 0ef27603e9..3a88867fa1 100644
--- a/apps/plugins/plugin.lds
+++ b/apps/plugins/plugin.lds
@@ -68,7 +68,7 @@ OUTPUT_FORMAT(elf32-littlemips)
68#elif CONFIG_CPU==AS3525 || CONFIG_CPU==AS3525v2 68#elif CONFIG_CPU==AS3525 || CONFIG_CPU==AS3525v2
69#include "cpu.h" 69#include "cpu.h"
70#define DRAMORIG DRAM_ORIG 70#define DRAMORIG DRAM_ORIG
71#ifdef AMS_LOWMEM 71#if defined(AMS_LOWMEM) || (CONFIG_CPU == AS3525v2)
72#define DRAMSIZE (DRAM_SIZE - PLUGIN_BUFFER_SIZE - STUBOFFSET - TTB_SIZE) 72#define DRAMSIZE (DRAM_SIZE - PLUGIN_BUFFER_SIZE - STUBOFFSET - TTB_SIZE)
73#else 73#else
74#define DRAMSIZE (DRAM_SIZE - PLUGIN_BUFFER_SIZE - STUBOFFSET - CODEC_SIZE - TTB_SIZE) 74#define DRAMSIZE (DRAM_SIZE - PLUGIN_BUFFER_SIZE - STUBOFFSET - CODEC_SIZE - TTB_SIZE)
@@ -131,7 +131,7 @@ OUTPUT_FORMAT(elf32-littlemips)
131#define IRAMSIZE 0 131#define IRAMSIZE 0
132 132
133#elif CONFIG_CPU==AS3525 || CONFIG_CPU==AS3525v2 133#elif CONFIG_CPU==AS3525 || CONFIG_CPU==AS3525v2
134#ifdef AMS_LOWMEM 134#if defined(AMS_LOWMEM) || (CONFIG_CPU == AS3525v2)
135#define IRAMSIZE 0 /* simulates no IRAM since codec is already entirely in IRAM */ 135#define IRAMSIZE 0 /* simulates no IRAM since codec is already entirely in IRAM */
136#define CODEC_ORIGIN (IRAM_ORIG + IRAM_SIZE - CODEC_SIZE) 136#define CODEC_ORIGIN (IRAM_ORIG + IRAM_SIZE - CODEC_SIZE)
137#define PLUGIN_ORIGIN (DRAM_ORIG + DRAMSIZE) 137#define PLUGIN_ORIGIN (DRAM_ORIG + DRAMSIZE)