diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2010-03-03 23:20:32 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2010-03-03 23:20:32 +0000 |
| commit | f8edc325896c9c24d7f32f4861a0b0d2a8b9f4cd (patch) | |
| tree | b2682307d01fffb54dd68e54b8f2e2986fe6bcc6 /firmware/export/lcd.h | |
| parent | e479853f1542616dab56817c8f5326364b663c7c (diff) | |
| download | rockbox-f8edc325896c9c24d7f32f4861a0b0d2a8b9f4cd.zip rockbox-f8edc325896c9c24d7f32f4861a0b0d2a8b9f4cd.tar.gz rockbox-f8edc325896c9c24d7f32f4861a0b0d2a8b9f4cd.tar.bz2 rockbox-f8edc325896c9c24d7f32f4861a0b0d2a8b9f4cd.tar.xz | |
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 'firmware/export/lcd.h')
| -rw-r--r-- | firmware/export/lcd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index 5145e7c..3572090 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h @@ -175,8 +175,8 @@ extern void lcd_write_command(int byte); extern void lcd_write_command_e(int cmd, int data); extern void lcd_write_command_ex(int cmd, int data1, int data2); extern void lcd_write_data(const fb_data* p_bytes, int count); -extern void lcd_init(void); -extern void lcd_init_device(void); +extern void lcd_init(void) INIT_ATTR; +extern void lcd_init_device(void) INIT_ATTR; extern void lcd_backlight(bool on); extern int lcd_default_contrast(void); |