diff options
Diffstat (limited to 'include/asm-sparc/init.h')
-rw-r--r-- | include/asm-sparc/init.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/asm-sparc/init.h b/include/asm-sparc/init.h new file mode 100644 index 000000000..eddd82ca8 --- /dev/null +++ b/include/asm-sparc/init.h @@ -0,0 +1,24 @@ +#ifndef _SPARC_INIT_H +#define _SPARC_INIT_H + +#if (defined (__svr4__) || defined (__ELF__)) +#define __init __attribute__ ((__section__ (".text.init"))) +#define __initdata __attribute__ ((__section__ (".data.init"))) +#define __initfunc(__arginit) \ + __arginit __init; \ + __arginit +/* For assembly routines */ +#define __INIT .section ".text.init",#alloc,#execinstr +#define __FINIT .previous +#define __INITDATA .section ".data.init",#alloc,#write +#else +#define __init +#define __initdata +#define __initfunc(__arginit) __arginit +/* For assembly routines */ +#define __INIT +#define __FINIT +#define __INITDATA +#endif + +#endif |