summaryrefslogtreecommitdiff
path: root/include/asm-mips/module.h
diff options
context:
space:
mode:
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 */