Merge branch 'x86-microcode-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-block.git] / include / asm-generic / sections.h
CommitLineData
1da177e4
LT
1#ifndef _ASM_GENERIC_SECTIONS_H_
2#define _ASM_GENERIC_SECTIONS_H_
3
4/* References to section boundaries */
5
6extern char _text[], _stext[], _etext[];
7extern char _data[], _sdata[], _edata[];
8extern char __bss_start[], __bss_stop[];
9extern char __init_begin[], __init_end[];
10extern char _sinittext[], _einittext[];
11extern char _end[];
3e5d8f97 12extern char __per_cpu_load[], __per_cpu_start[], __per_cpu_end[];
d0aaff97 13extern char __kprobes_text_start[], __kprobes_text_end[];
2bc0414e 14extern char __initdata_begin[], __initdata_end[];
a581c2a4 15extern char __start_rodata[], __end_rodata[];
1da177e4 16
b99b87f7
PO
17/* Start and end of .ctors section - used for constructor calls. */
18extern char __ctors_start[], __ctors_end[];
19
deac93df
JB
20/* function descriptor handling (if any). Override
21 * in asm/sections.h */
22#ifndef dereference_function_descriptor
23#define dereference_function_descriptor(p) (p)
24#endif
25
00afe029
MF
26/* random extra sections (if any). Override
27 * in asm/sections.h */
28#ifndef arch_is_kernel_text
29static inline int arch_is_kernel_text(unsigned long addr)
30{
31 return 0;
32}
33#endif
34
35#ifndef arch_is_kernel_data
36static inline int arch_is_kernel_data(unsigned long addr)
37{
38 return 0;
39}
40#endif
41
1da177e4 42#endif /* _ASM_GENERIC_SECTIONS_H_ */