Import 2.3.12pre3
[davej-history.git] / include / asm-mips / init.h
blob4aad2cffcfe019c9dfb6b40fe1fa5d7d3a4717fd
1 /* $Id: init.h,v 1.3 1999/02/15 02:22:10 ralf Exp $
3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
5 * for more details.
7 * Copyright 1998, 1999 Ralf Baechle
8 */
9 #ifndef __MIPS_INIT_H
10 #define __MIPS_INIT_H
12 #define __init __attribute__ ((__section__ (".text.init")))
13 #define __initdata __attribute__ ((__section__ (".data.init")))
14 #define __initfunc(__arginit) \
15 __arginit __init; \
16 __arginit
18 #if __GNUC__ >= 2 && __GNUC_MINOR__ >= 8
19 #define __initlocaldata __initdata
20 #else
21 #define __initlocaldata
22 #endif
24 /* For assembly routines */
25 #define __INIT .section .text.init,"ax"
26 #define __FINIT .previous
27 #define __INITDATA .section .data.init,"a"
28 #define __cacheline_aligned __attribute__((__aligned__(L1_CACHE_BYTES)))
30 #endif /* __MIPS_INIT_H */