]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/extable.c
Don't ask twice about not including staging drivers
[linux-2.6-omap-h63xx.git] / kernel / extable.c
index 7501b531ceedab97f969402822be75d6819b042f..a26cb2e170237d849c9f87038a6def48ee948dd6 100644 (file)
@@ -40,13 +40,14 @@ const struct exception_table_entry *search_exception_tables(unsigned long addr)
        return e;
 }
 
-static int core_kernel_text(unsigned long addr)
+int core_kernel_text(unsigned long addr)
 {
        if (addr >= (unsigned long)_stext &&
            addr <= (unsigned long)_etext)
                return 1;
 
-       if (addr >= (unsigned long)_sinittext &&
+       if (system_state == SYSTEM_BOOTING &&
+           addr >= (unsigned long)_sinittext &&
            addr <= (unsigned long)_einittext)
                return 1;
        return 0;