mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-10-10 08:03:04 -04:00
jz47xx: fix plugins/codec link address
Removing STUBOFFSET in commit 78542df466 caused DRAMSIZE
to be computed incorrectly, not taking into account the
16k offset used for 'IRAM'. As a result plugins & codecs
got shifted 16k upwards from their intended load address,
making them unable to load.
Change-Id: I6c338e04506e12fa2b8a69286a1ed785a2f8042d
This commit is contained in:
parent
92b0bf7a27
commit
a6c290e8e5
1 changed files with 3 additions and 0 deletions
|
|
@ -77,6 +77,9 @@ OUTPUT_FORMAT(elf32-littlemips)
|
||||||
#elif CONFIG_CPU==IMX233
|
#elif CONFIG_CPU==IMX233
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#define DRAMSIZE (DRAM_SIZE - PLUGIN_BUFFER_SIZE - CODEC_SIZE - FRAME_SIZE - TTB_SIZE)
|
#define DRAMSIZE (DRAM_SIZE - PLUGIN_BUFFER_SIZE - CODEC_SIZE - FRAME_SIZE - TTB_SIZE)
|
||||||
|
#elif CONFIG_CPU == JZ4732 || CONFIG_CPU == JZ4760B
|
||||||
|
/* fake 'iram' region occupies first 16k */
|
||||||
|
#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_BUFFER_SIZE - CODEC_SIZE - 0x4000
|
||||||
#elif CONFIG_CPU==X1000
|
#elif CONFIG_CPU==X1000
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#define DRAMSIZE (X1000_DRAM_SIZE - PLUGIN_BUFFER_SIZE - CODEC_SIZE)
|
#define DRAMSIZE (X1000_DRAM_SIZE - PLUGIN_BUFFER_SIZE - CODEC_SIZE)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue