summaryrefslogtreecommitdiff
path: root/include/asm-mips/module.h
diff options
context:
space:
mode:
authorAnton Altaparmakov <aia21@cantab.net>2004-06-26 21:53:53 +0100
committerAnton Altaparmakov <aia21@cantab.net>2004-06-26 21:53:53 +0100
commit320ed1994ecf7ccadaaa95196467565b34d8d686 (patch)
treeb36f16a87596469091c97d35002faa1b5c0360ab /include/asm-mips/module.h
parent702fdfcae9a47ec4976d82d3d0b4b4a41bd72a52 (diff)
parentf6a7507c1714f5cb4faaebc76a1d02260830be01 (diff)
Merge cantab.net:/home/src/bklinux-2.6
into cantab.net:/home/src/ntfs-2.6
Diffstat (limited to 'include/asm-mips/module.h')
-rw-r--r--include/asm-mips/module.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/include/asm-mips/module.h b/include/asm-mips/module.h
index 99635e6b610e..90ee24aad955 100644
--- a/include/asm-mips/module.h
+++ b/include/asm-mips/module.h
@@ -2,11 +2,14 @@
#define _ASM_MODULE_H
#include <linux/config.h>
+#include <linux/list.h>
+#include <asm/uaccess.h>
struct mod_arch_specific {
/* Data Bus Error exception tables */
- const struct exception_table_entry *dbe_table_start;
- const struct exception_table_entry *dbe_table_end;
+ struct list_head dbe_list;
+ const struct exception_table_entry *dbe_start;
+ const struct exception_table_entry *dbe_end;
};
typedef uint8_t Elf64_Byte; /* Type for a 8-bit quantity. */
@@ -38,4 +41,16 @@ typedef struct
#endif
+#ifdef CONFIG_MODULES
+/* Given an address, look for it in the exception tables. */
+const struct exception_table_entry*search_module_dbetables(unsigned long addr);
+#else
+/* Given an address, look for it in the exception tables. */
+static inline const struct exception_table_entry *
+search_module_dbetables(unsigned long addr)
+{
+ return NULL;
+}
+#endif
+
#endif /* _ASM_MODULE_H */