diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2010-09-12 13:30:04 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-09-20 08:56:37 +0200 |
commit | e34c1d4fccda53fe7f83dba57d1102e4ba2baf91 (patch) | |
tree | bb8342665df55a147fcae0844143aa5500deddaf /include | |
parent | 427c6085838cb52bf71c316a2c7b5630e94c65f8 (diff) | |
download | barebox-e34c1d4fccda53fe7f83dba57d1102e4ba2baf91.tar.gz barebox-e34c1d4fccda53fe7f83dba57d1102e4ba2baf91.tar.xz |
init: introduce __BARE_INIT for .section ".text_bare_init.text"
and make init.h availlable for assembly too
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/init.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/init.h b/include/init.h index 8692b68d07..2f4fac164b 100644 --- a/include/init.h +++ b/include/init.h @@ -7,6 +7,10 @@ #define __init #define __initdata +/* For assembly routines */ +#define __BARE_INIT .section ".text_bare_init.text","ax" + +#ifndef __ASSEMBLY__ typedef int (*initcall_t)(void); #define __define_initcall(level,fn,id) \ @@ -40,5 +44,7 @@ typedef int (*initcall_t)(void); */ #define __bare_init __section(.text_bare_init.text) +#endif + #endif /* _INIT_H */ |