FS#10756 - Free unused init code
commit0b8b811a5644d97e04dc48c5681d64e724a8026c
authorkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Wed, 3 Mar 2010 23:20:32 +0000 (3 23:20 +0000)
committerkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Wed, 3 Mar 2010 23:20:32 +0000 (3 23:20 +0000)
treeb2682307d01fffb54dd68e54b8f2e2986fe6bcc6
parentf3b2ef055b226f607d2c958e96b575f9ed035a3d
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
33 files changed:
apps/filetypes.h
apps/gui/statusbar-skinned.h
apps/gui/statusbar.h
apps/gui/viewport.h
apps/gui/wps.h
apps/main.c
apps/playlist.h
apps/recorder/radio.h
apps/tagcache.h
apps/tagtree.h
apps/tdspeed.h
apps/tree.h
firmware/export/adc.h
firmware/export/audio.h
firmware/export/backlight.h
firmware/export/buffer.h
firmware/export/button.h
firmware/export/config.h
firmware/export/font.h
firmware/export/kernel.h
firmware/export/lcd.h
firmware/export/power.h
firmware/export/powermgmt.h
firmware/export/scroll_engine.h
firmware/export/thread.h
firmware/export/tuner.h
firmware/export/usb.h
firmware/include/dircache.h
firmware/target/arm/as3525/app.lds
firmware/target/arm/crt0-pp.S
firmware/target/arm/crt0.S
firmware/target/arm/sandisk/app.lds
firmware/thread.c