summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-01-28 07:00:49 +0100
committerThomas Martitz <kugel@rockbox.org>2014-02-02 16:59:29 +0100
commita11c6a532b00be687dfc61b269114ae70616bc28 (patch)
tree38315c65d4c7dea71dd265d25988229e351c472c
parent3a86352a5d71d30a807f48cf6f0910efe2655430 (diff)
downloadrockbox-a11c6a532b00be687dfc61b269114ae70616bc28.tar.gz
rockbox-a11c6a532b00be687dfc61b269114ae70616bc28.tar.bz2
rockbox-a11c6a532b00be687dfc61b269114ae70616bc28.zip
hosted: Substract more than 256K from total memory pool.
These 256K are intended to account for the binary size which reduces the total available RAM on native targets. 256K is really outdated though, 768K should be more accurate (for the majority of targets). Change-Id: Iab3ee51d42ae15b1b7efb8588881579cf1948ae7
-rw-r--r--firmware/core_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/core_alloc.c b/firmware/core_alloc.c
index e9f9795917..68c400f669 100644
--- a/firmware/core_alloc.c
+++ b/firmware/core_alloc.c
@@ -19,7 +19,7 @@ extern unsigned char audiobufend[];
/* defined in linker script */
extern unsigned char audiobuffer[];
#else /* PLATFORM_HOSTED */
-unsigned char audiobuffer[(MEMORYSIZE*1024-256)*1024];
+unsigned char audiobuffer[((MEMORYSIZE)*1024-768)*1024];
unsigned char *audiobufend = audiobuffer + sizeof(audiobuffer);
extern unsigned char *audiobufend;
#endif