Linux-2.6.12-rc2
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / asm-ppc64 / module.h
blob0581607826e814b76104819bd40c84569dee9001
1 #ifndef _ASM_PPC64_MODULE_H
2 #define _ASM_PPC64_MODULE_H
4 #include <linux/list.h>
5 #include <asm/bug.h>
7 struct mod_arch_specific
9 /* Index of stubs section within module. */
10 unsigned int stubs_section;
12 /* What section is the TOC? */
13 unsigned int toc_section;
15 /* List of BUG addresses, source line numbers and filenames */
16 struct list_head bug_list;
17 struct bug_entry *bug_table;
18 unsigned int num_bugs;
21 extern struct bug_entry *module_find_bug(unsigned long bugaddr);
23 #define Elf_Shdr Elf64_Shdr
24 #define Elf_Sym Elf64_Sym
25 #define Elf_Ehdr Elf64_Ehdr
27 /* Make empty section for module_frob_arch_sections to expand. */
28 #ifdef MODULE
29 asm(".section .stubs,\"ax\",@nobits; .align 3; .previous");
30 #endif
32 struct exception_table_entry;
33 void sort_ex_table(struct exception_table_entry *start,
34 struct exception_table_entry *finish);
36 #endif /* _ASM_PPC64_MODULE_H */