]> rtime.felk.cvut.cz Git - sysless.git/commit
Call automatically __hardware_init_hook() before main().
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 2 Apr 2008 18:03:21 +0000 (20:03 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 2 Apr 2008 18:03:32 +0000 (20:03 +0200)
commitf8eebecc20740e5f60c94553b6469b3ba907775f
treef869d1cc32a05fa7b70738d1abc005804a789246
parent6892bcb1255f089404f8f71240a3491f63368595
Call automatically __hardware_init_hook() before main().

We do not use standard .ctros/.dtors sections because it requires much
more memory for code (crti.S crtbegin.S crtend.S crtn.S and functions
exit(), atexit() and others). If applications are loaded to RAM, memory
is scare resource.
arch/arm/mach-lpc21xx/libs/boot/Makefile.omk
arch/arm/mach-lpc21xx/libs/boot/crt0.S
arch/arm/mach-lpc21xx/libs/boot/crt0flash.S
board/lpceurobot/libs/test-init/main.c