Commit f733206b authored by Anton Blanchard's avatar Anton Blanchard

ppc64: search module exception tables

parent 4d40f872
...@@ -41,8 +41,22 @@ search_exception_table(unsigned long addr) ...@@ -41,8 +41,22 @@ search_exception_table(unsigned long addr)
{ {
unsigned long ret; unsigned long ret;
#ifndef CONFIG_MODULES
/* There is only the kernel to search. */
ret = search_one_table(__start___ex_table, __stop___ex_table-1, addr); ret = search_one_table(__start___ex_table, __stop___ex_table-1, addr);
if (ret) return ret; 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->ex_table_start == NULL)
continue;
ret = search_one_table(mp->ex_table_start,
mp->ex_table_end - 1, addr);
if (ret)
return ret;
}
#endif
return 0; return 0;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment