Skip to content

Commit

Permalink
[Blackfin] arch: define our own BUG() so we can dump the blackfin har…
Browse files Browse the repository at this point in the history
…dware trace buffer

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Apr 24, 2008
1 parent 8e9d5c7 commit 2d19123
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions include/asm-blackfin/bug.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
#ifndef _BLACKFIN_BUG_H
#define _BLACKFIN_BUG_H

#ifdef CONFIG_BUG
#define HAVE_ARCH_BUG

#define BUG() do { \
dump_bfin_trace_buffer(); \
printk(KERN_EMERG "BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __func__); \
panic("BUG!"); \
} while (0)

#endif

#include <asm-generic/bug.h>

#endif

0 comments on commit 2d19123

Please sign in to comment.