diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2010-08-31 19:06:04 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2010-08-31 19:06:04 +0000 |
commit | a1cf4ced837327c718061feedf96d512328f5cc8 (patch) | |
tree | 2c51950d2c48715aede1e3d4d3e0a1a137885378 /apps/main.c | |
parent | b9201e3c6fcfdcb2d1e14f5593fc0ff98af40290 (diff) |
Unify 32mb and 64mb ipod video builds - FS#11580
Since memory on 32mb ipod videos is mapped twice, a 64mb build still has codecs and plugins mapped in a usable area. This means that all that needs to be done to support 32mb and 64mb boards with the same build is to adjust audiobufend to avoid using more than the actually present RAM.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27960 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/main.c')
-rw-r--r-- | apps/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/main.c b/apps/main.c index ceaa85f38f..0c2f0751b3 100644 --- a/apps/main.c +++ b/apps/main.c @@ -422,6 +422,13 @@ static void init(void) #endif system_init(); +#if defined(IPOD_VIDEO) + audiobufend=(unsigned char *)audiobufend_lds; + if(MEM==64 && probed_ramsize!=64) + { + audiobufend -= (32<<20); + } +#endif kernel_init(); #ifdef HAVE_ADJUSTABLE_CPU_FREQ |