projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e9d5c7
)
[Blackfin] arch: define our own BUG() so we can dump the blackfin hardware trace...
author
Mike Frysinger
<vapier.adi@gmail.com>
Thu, 24 Apr 2008 00:58:44 +0000
(08:58 +0800)
committer
Bryan Wu
<cooloney@kernel.org>
Thu, 24 Apr 2008 00:58:44 +0000
(08:58 +0800)
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
include/asm-blackfin/bug.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-blackfin/bug.h
b/include/asm-blackfin/bug.h
index 41e53b29f167cba5159180a35feb2b14b0d07f65..6d3e11b1fc576c6f141c98e3086e477c691a23df 100644
(file)
--- a/
include/asm-blackfin/bug.h
+++ b/
include/asm-blackfin/bug.h
@@
-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