summaryrefslogtreecommitdiffstats
path: root/apps/filetypes.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-03-03 23:20:32 +0000
committerThomas Martitz <kugel@rockbox.org>2010-03-03 23:20:32 +0000
commitf8edc325896c9c24d7f32f4861a0b0d2a8b9f4cd (patch)
treeb2682307d01fffb54dd68e54b8f2e2986fe6bcc6 /apps/filetypes.h
parente479853f1542616dab56817c8f5326364b663c7c (diff)
downloadrockbox-f8edc325896c9c24d7f32f4861a0b0d2a8b9f4cd.tar.gz
rockbox-f8edc325896c9c24d7f32f4861a0b0d2a8b9f4cd.tar.bz2
rockbox-f8edc325896c9c24d7f32f4861a0b0d2a8b9f4cd.zip
FS#10756 - Free unused init code
Introduce a new .init section for initialisation code, so that it can be copied to an area which is later overwritten before calling. The stack/bss can then overwrite that code, effectively freeing the code size that the initialisation routines need. Gives a few kB ram usage back. Only implemented for PP and as3525 so far. More targets could be added, as well as more functions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25013 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/filetypes.h')
-rw-r--r--apps/filetypes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/filetypes.h b/apps/filetypes.h
index 068ec3b259..0b4fb7b812 100644
--- a/apps/filetypes.h
+++ b/apps/filetypes.h
@@ -56,7 +56,7 @@ void tree_get_filetypes(const struct filetype**, int*);
/* init the filetypes structs.
uses audio buffer for storage, so call early in init... */
-void filetype_init(void);
+void filetype_init(void) INIT_ATTR;
void read_viewer_theme_file(void);
#ifdef HAVE_LCD_COLOR
void read_color_theme_file(void);