patch-2.1.8 linux/arch/i386/mm/extable.c
Next file: linux/arch/m68k/config.in
Previous file: linux/arch/i386/kernel/traps.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Wed Nov 6 14:24:44 1996
- Orig file:
v2.1.7/linux/arch/i386/mm/extable.c
- Orig date:
Fri Nov 1 17:13:14 1996
diff -u --recursive --new-file v2.1.7/linux/arch/i386/mm/extable.c linux/arch/i386/mm/extable.c
@@ -2,6 +2,8 @@
* linux/arch/i386/mm/extable.c
*/
+#include <linux/config.h>
+#include <linux/module.h>
#include <asm/uaccess.h>
extern const struct exception_table_entry __start___ex_table[];
@@ -37,6 +39,9 @@
search_exception_table(unsigned long addr)
{
unsigned long ret;
+#ifdef CONFIG_MODULES
+ struct module *mp;
+#endif
/* Search the kernel's table first. */
ret = search_one_table(__start___ex_table,
@@ -44,7 +49,15 @@
if (ret)
return ret;
- /* FIXME -- search the module's tables here */
-
+#ifdef CONFIG_MODULES
+ for (mp = module_list; mp != NULL; mp = mp->next) {
+ if (mp->exceptinfo.start != NULL) {
+ ret = search_one_table(mp->exceptinfo.start,
+ mp->exceptinfo.stop-1, addr);
+ if (ret)
+ return ret;
+ }
+ }
+#endif
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov