From 07c4254135aecc6ae0964d6d6413a40251e8f6a8 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sun, 8 Jan 2006 22:50:14 +0000 Subject: 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 --- apps/codecs/wavpack.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/codecs/wavpack.c') diff --git a/apps/codecs/wavpack.c b/apps/codecs/wavpack.c index 21c194773b..ff890ba805 100644 --- a/apps/codecs/wavpack.c +++ b/apps/codecs/wavpack.c @@ -40,6 +40,8 @@ static long read_callback (void *buffer, long bytes) extern char iramcopy[]; extern char iramstart[]; extern char iramend[]; +extern char iedata[]; +extern char iend[]; #endif /* this is the codec entry point */ @@ -56,6 +58,7 @@ enum codec_status codec_start(struct codec_api* api) #ifdef USE_IRAM ci->memcpy(iramstart, iramcopy, iramend-iramstart); + ci->memset(iedata, 0, iend - iedata); #endif ci->configure(CODEC_SET_FILEBUF_WATERMARK, (int *)(1024*512)); -- cgit v1.2.3