From a11c6a532b00be687dfc61b269114ae70616bc28 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Tue, 28 Jan 2014 07:00:49 +0100 Subject: 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 --- firmware/core_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware') 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 -- cgit v1.2.3