X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fbug.c;h=bfeafd60ee9fce4ba8e643c2beb5d8e66cff74e3;hb=32926b3be19fa4859c02f248a342f2d62822dcfe;hp=014b582c5c4b6a058058778d6100012a92501459;hpb=3be11c8f4f2fa194834c2e83540f34da442b8977;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; }