From f8edc325896c9c24d7f32f4861a0b0d2a8b9f4cd Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 3 Mar 2010 23:20:32 +0000 Subject: 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 --- firmware/export/scroll_engine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/export/scroll_engine.h') diff --git a/firmware/export/scroll_engine.h b/firmware/export/scroll_engine.h index 16b11c2..ca94828 100644 --- a/firmware/export/scroll_engine.h +++ b/firmware/export/scroll_engine.h @@ -28,7 +28,7 @@ #include #include "file.h" -void scroll_init(void); +void scroll_init(void) INIT_ATTR; void lcd_scroll_stop(const struct viewport* vp); void lcd_scroll_stop_line(const struct viewport* vp, int y); void lcd_scroll_fn(void); -- cgit v1.1