mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-22 11:32:41 -05:00
Iriver: Fix codec <-> plugin start address clash, leading to crashes when trying to run plugins while playing music.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6903 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c9cb607a19
commit
91f572c3b5
1 changed files with 7 additions and 4 deletions
|
|
@ -23,19 +23,22 @@ OUTPUT_FORMAT(elf32-sh)
|
|||
#endif
|
||||
|
||||
#define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE
|
||||
#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - CODEC_SIZE
|
||||
#define CODEC_ORIGIN (DRAMORIG + (DRAMSIZE))
|
||||
#define PLUGIN_ORIGIN (CODEC_ORIGIN + CODEC_SIZE)
|
||||
|
||||
|
||||
#ifdef CODEC
|
||||
#define THIS_LENGTH CODEC_SIZE
|
||||
#define THIS_ORIGIN CODEC_ORIGIN
|
||||
#else
|
||||
#define THIS_LENGTH PLUGIN_LENGTH
|
||||
#define THIS_ORIGIN PLUGIN_ORIGIN
|
||||
#endif
|
||||
|
||||
#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - CODEC_SIZE
|
||||
#define PLUGIN_ORIGIN (DRAMORIG + (DRAMSIZE))
|
||||
|
||||
MEMORY
|
||||
{
|
||||
PLUGIN_RAM : ORIGIN = PLUGIN_ORIGIN, LENGTH = THIS_LENGTH
|
||||
PLUGIN_RAM : ORIGIN = THIS_ORIGIN, LENGTH = THIS_LENGTH
|
||||
#ifdef IRIVER_H100
|
||||
PLUGIN_IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue