patch-2.1.18 linux/arch/m68k/mm/extable.c
Next file: linux/arch/ppc/kernel/ksyms.c
Previous file: linux/arch/m68k/kernel/ksyms.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Fri Dec 27 12:03:20 1996
- Orig file:
v2.1.17/linux/arch/m68k/mm/extable.c
- Orig date:
Fri Nov 22 18:28:17 1996
diff -u --recursive --new-file v2.1.17/linux/arch/m68k/mm/extable.c linux/arch/m68k/mm/extable.c
@@ -34,24 +34,22 @@
search_exception_table(unsigned long addr)
{
unsigned long ret;
-#ifdef CONFIG_MODULES
- struct module *mp;
-#endif
- /* Search the kernel's table first. */
+#ifndef CONFIG_MODULES
+ /* There is only the kernel to search. */
ret = search_one_table(__start___ex_table, __stop___ex_table-1, addr);
- if (ret)
- return ret;
-
-#ifdef CONFIG_MODULES
+ if (ret) return ret;
+#else
+ /* The kernel is the last "module" -- no need to treat it special. */
+ struct module *mp;
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;
- }
+ if (mp->ex_table_start == NULL)
+ continue;
+ ret = search_one_table(mp->ex_table_start,
+ mp->ex_table_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