X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lib%2Fbug.c;h=bfeafd60ee9fce4ba8e643c2beb5d8e66cff74e3;hb=2857ffb7b8913ef713533ac5783abd70a20529e4;hp=014b582c5c4b6a058058778d6100012a92501459;hpb=7e23772f414cdbfb2a08aed237d6e926bb1cb728;p=linux-2.6-omap-h63xx.git diff --git a/lib/bug.c b/lib/bug.c index 014b582c5c4..bfeafd60ee9 100644 --- a/lib/bug.c +++ b/lib/bug.c @@ -37,7 +37,9 @@ */ #include #include +#include #include +#include extern const struct bug_entry __start___bug_table[], __stop___bug_table[]; @@ -112,7 +114,7 @@ const struct bug_entry *find_bug(unsigned long bugaddr) return module_find_bug(bugaddr); } -enum bug_trap_type report_bug(unsigned long bugaddr) +enum bug_trap_type report_bug(unsigned long bugaddr, struct pt_regs *regs) { const struct bug_entry *bug; const char *file; @@ -147,7 +149,8 @@ enum bug_trap_type report_bug(unsigned long bugaddr) "[verbose debug info unavailable]\n", (void *)bugaddr); - dump_stack(); + show_regs(regs); + add_taint(TAINT_WARN); return BUG_TRAP_TYPE_WARN; }