diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-mips/module.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/asm-mips/module.h')
-rw-r--r-- | include/asm-mips/module.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/include/asm-mips/module.h b/include/asm-mips/module.h new file mode 100644 index 000000000000..90ee24aad955 --- /dev/null +++ b/include/asm-mips/module.h | |||
@@ -0,0 +1,56 @@ | |||
1 | #ifndef _ASM_MODULE_H | ||
2 | #define _ASM_MODULE_H | ||
3 | |||
4 | #include <linux/config.h> | ||
5 | #include <linux/list.h> | ||
6 | #include <asm/uaccess.h> | ||
7 | |||
8 | struct mod_arch_specific { | ||
9 | /* Data Bus Error exception tables */ | ||
10 | struct list_head dbe_list; | ||
11 | const struct exception_table_entry *dbe_start; | ||
12 | const struct exception_table_entry *dbe_end; | ||
13 | }; | ||
14 | |||
15 | typedef uint8_t Elf64_Byte; /* Type for a 8-bit quantity. */ | ||
16 | |||
17 | typedef struct | ||
18 | { | ||
19 | Elf64_Addr r_offset; /* Address of relocation. */ | ||
20 | Elf64_Word r_sym; /* Symbol index. */ | ||
21 | Elf64_Byte r_ssym; /* Special symbol. */ | ||
22 | Elf64_Byte r_type3; /* Third relocation. */ | ||
23 | Elf64_Byte r_type2; /* Second relocation. */ | ||
24 | Elf64_Byte r_type; /* First relocation. */ | ||
25 | Elf64_Sxword r_addend; /* Addend. */ | ||
26 | } Elf64_Mips_Rela; | ||
27 | |||
28 | #ifdef CONFIG_MIPS32 | ||
29 | |||
30 | #define Elf_Shdr Elf32_Shdr | ||
31 | #define Elf_Sym Elf32_Sym | ||
32 | #define Elf_Ehdr Elf32_Ehdr | ||
33 | |||
34 | #endif | ||
35 | |||
36 | #ifdef CONFIG_MIPS64 | ||
37 | |||
38 | #define Elf_Shdr Elf64_Shdr | ||
39 | #define Elf_Sym Elf64_Sym | ||
40 | #define Elf_Ehdr Elf64_Ehdr | ||
41 | |||
42 | #endif | ||
43 | |||
44 | #ifdef CONFIG_MODULES | ||
45 | /* Given an address, look for it in the exception tables. */ | ||
46 | const struct exception_table_entry*search_module_dbetables(unsigned long addr); | ||
47 | #else | ||
48 | /* Given an address, look for it in the exception tables. */ | ||
49 | static inline const struct exception_table_entry * | ||
50 | search_module_dbetables(unsigned long addr) | ||
51 | { | ||
52 | return NULL; | ||
53 | } | ||
54 | #endif | ||
55 | |||
56 | #endif /* _ASM_MODULE_H */ | ||