diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2006-01-08 22:50:14 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2006-01-08 22:50:14 +0000 |
| commit | 07c4254135aecc6ae0964d6d6413a40251e8f6a8 (patch) | |
| tree | dac473efeb9f49cb6fefeb43c053f2dd0dc1b6cc /apps/codecs/mpc.c | |
| parent | e8b1787296dae2a69893bd0fe97b2361fb6180ba (diff) | |
| download | rockbox-07c4254135aecc6ae0964d6d6413a40251e8f6a8.zip rockbox-07c4254135aecc6ae0964d6d6413a40251e8f6a8.tar.gz rockbox-07c4254135aecc6ae0964d6d6413a40251e8f6a8.tar.bz2 rockbox-07c4254135aecc6ae0964d6d6413a40251e8f6a8.tar.xz | |
Don't include the .bss and .ibss sections in the binary image for codecs and plugins. Saves quite some disk space (and buffer space in case of codec changes during playback).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8308 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/mpc.c')
| -rw-r--r-- | apps/codecs/mpc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/codecs/mpc.c b/apps/codecs/mpc.c index db25015..207a63c 100644 --- a/apps/codecs/mpc.c +++ b/apps/codecs/mpc.c @@ -68,6 +68,8 @@ MPC_SAMPLE_FORMAT sample_buffer[MPC_FRAME_LENGTH*2] IBSS_ATTR; extern char iramcopy[]; extern char iramstart[]; extern char iramend[]; +extern char iedata[]; +extern char iend[]; #endif /* this is the codec entry point */ @@ -83,6 +85,7 @@ enum codec_status codec_start(struct codec_api *api) TEST_CODEC_API(api); #ifdef USE_IRAM ci->memcpy(iramstart, iramcopy, iramend - iramstart); + ci->memset(iedata, 0, iend - iedata); #endif ci->configure(CODEC_DSP_ENABLE, (bool *)true); |