extable: Add function to search only kernel exception table
[linux-2.6-microblaze.git] / kernel / extable.c
index e23cce6..f6c9406 100644 (file)
@@ -40,13 +40,20 @@ void __init sort_main_extable(void)
        }
 }
 
+/* Given an address, look for it in the kernel exception table */
+const
+struct exception_table_entry *search_kernel_exception_table(unsigned long addr)
+{
+       return search_extable(__start___ex_table,
+                             __stop___ex_table - __start___ex_table, addr);
+}
+
 /* Given an address, look for it in the exception tables. */
 const struct exception_table_entry *search_exception_tables(unsigned long addr)
 {
        const struct exception_table_entry *e;
 
-       e = search_extable(__start___ex_table,
-                          __stop___ex_table - __start___ex_table, addr);
+       e = search_kernel_exception_table(addr);
        if (!e)
                e = search_module_extables(addr);
        return e;